diff --git a/Base/Model.php b/Base/Model.php index 34c1cce..7b62516 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -464,7 +464,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \ if ($generate === false) { return false; } - if (!$this->getConnection()->createCommand($generate, $query->params)->save()) { + if (!$this->getConnection()->createCommand($generate, $query->params)->exec()) { return FALSE; } return $this->refresh()->afterSave($old, $change); diff --git a/Command.php b/Command.php index 9d7fee1..ccff23c 100644 --- a/Command.php +++ b/Command.php @@ -47,15 +47,6 @@ class Command extends Component return (bool)$this->_prepare(); } - /** - * @return bool - * @throws - */ - public function save(): bool - { - return (bool)$this->_prepare(); - } - /** * @return bool|array