diff --git a/ActiveQuery.php b/ActiveQuery.php index ab4f87e..2cd7465 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -288,6 +288,6 @@ class ActiveQuery extends QueryTrait implements ISqlBuilder */ public function delete(): bool { - return $this->buildCommand($this->builder->delete())->delete(); + return $this->buildCommand($this->builder->delete())->exec(); } }