|
|
@ -414,13 +414,12 @@ class DbManager extends Manager |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ($this->usingSqlite()) { |
|
|
|
if ($this->usingSqlite()) { |
|
|
|
$this->db->createCommand() |
|
|
|
$this->db->createCommand() |
|
|
|
->delete($this->itemChildTable, array('or', 'parent=:name1', 'child=:name2'), array( |
|
|
|
->delete($this->itemChildTable, array('or', 'parent=:name', 'child=:name'), array(':name' => $name)); |
|
|
|
':name1' => $name, |
|
|
|
$this->db->createCommand() |
|
|
|
':name2' => $name, |
|
|
|
->delete($this->assignmentTable, array('item_name' => $name)); |
|
|
|
)); |
|
|
|
|
|
|
|
$this->db->createCommand()->delete($this->assignmentTable, array('item_name' => $name)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return $this->db->createCommand()->delete($this->itemTable, array('name' => $name)) > 0; |
|
|
|
return $this->db->createCommand() |
|
|
|
|
|
|
|
->delete($this->itemTable, array('name' => $name)) > 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|