diff --git a/Base/Model.php b/Base/Model.php index 82650c8..34c1cce 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -436,7 +436,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \ private function insert(): bool|static { $sql = SqlBuilder::builder($query = static::query())->insert($this->_attributes); - $lastId = $this->getConnection()->createCommand($sql, $query->params)->save(); + $lastId = $this->getConnection()->createCommand($sql, $query->params)->exec(); if ($lastId === false) { return false; }