"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/rbac/DbManager.php" between
yii2-2.0.36.tar.gz and yii2-2.0.37.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

DbManager.php  (yii2-2.0.36):DbManager.php  (yii2-2.0.37)
skipping to change at line 296 skipping to change at line 296
return true; return true;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function removeItem($item) protected function removeItem($item)
{ {
if (!$this->supportsCascadeUpdate()) { if (!$this->supportsCascadeUpdate()) {
$this->db->createCommand() $this->db->createCommand()
->delete($this->itemChildTable, ['or', '[[parent]]=:name', '[[ch ild]]=:name'], [':name' => $item->name]) ->delete($this->itemChildTable, ['or', '[[parent]]=:parent', '[[ child]]=:child'], [':parent' => $item->name, ':child' => $item->name])
->execute(); ->execute();
$this->db->createCommand() $this->db->createCommand()
->delete($this->assignmentTable, ['item_name' => $item->name]) ->delete($this->assignmentTable, ['item_name' => $item->name])
->execute(); ->execute();
} }
$this->db->createCommand() $this->db->createCommand()
->delete($this->itemTable, ['name' => $item->name]) ->delete($this->itemTable, ['name' => $item->name])
->execute(); ->execute();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)