From 8d917b0f922370d53e0cce4c3edb2f8c4cea9867 Mon Sep 17 00:00:00 2001 From: xl Date: Thu, 8 Aug 2024 11:12:09 +0800 Subject: [PATCH] eee --- Base/Model.php | 2 +- Command.php | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) 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