This commit is contained in:
xl
2024-08-08 11:12:09 +08:00
parent 08fbc49091
commit 8d917b0f92
2 changed files with 1 additions and 10 deletions
+1 -1
View File
@@ -464,7 +464,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
if ($generate === false) { if ($generate === false) {
return false; return false;
} }
if (!$this->getConnection()->createCommand($generate, $query->params)->save()) { if (!$this->getConnection()->createCommand($generate, $query->params)->exec()) {
return FALSE; return FALSE;
} }
return $this->refresh()->afterSave($old, $change); return $this->refresh()->afterSave($old, $change);
-9
View File
@@ -47,15 +47,6 @@ class Command extends Component
return (bool)$this->_prepare(); return (bool)$this->_prepare();
} }
/**
* @return bool
* @throws
*/
public function save(): bool
{
return (bool)$this->_prepare();
}
/** /**
* @return bool|array * @return bool|array