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) {
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);