modify
This commit is contained in:
@@ -315,9 +315,10 @@ class ActiveQuery extends Component implements ISqlBuilder
|
|||||||
*/
|
*/
|
||||||
public function delete($getSql = false): string|bool
|
public function delete($getSql = false): string|bool
|
||||||
{
|
{
|
||||||
if ($getSql) {
|
$sql = $this->builder->delete();
|
||||||
return $this->builder->delete();
|
if ($getSql === false) {
|
||||||
|
return $this->execute($sql)->delete();
|
||||||
}
|
}
|
||||||
return $this->execute($this->builder->all())->delete();
|
return $sql;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user