eee
This commit is contained in:
+1
-3
@@ -339,9 +339,7 @@ class ActiveQuery extends Component implements ISqlBuilder
|
|||||||
{
|
{
|
||||||
$sql = $this->builder->delete();
|
$sql = $this->builder->delete();
|
||||||
if ($getSql === FALSE) {
|
if ($getSql === FALSE) {
|
||||||
$result = (bool)$this->execute($sql, $this->attributes)->delete();
|
return (bool)$this->execute($sql, $this->attributes)->delete();
|
||||||
$this->modelClass->optimize();
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
return $sql;
|
return $sql;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user