diff --git a/src/ActiveQuery.php b/src/ActiveQuery.php index 5de5566..e52c308 100644 --- a/src/ActiveQuery.php +++ b/src/ActiveQuery.php @@ -43,7 +43,6 @@ class ActiveQuery extends Component implements ISqlBuilder public array $attributes = []; - /** * Comply constructor. * @param $model @@ -270,7 +269,7 @@ class ActiveQuery extends Component implements ISqlBuilder [$sql, $params] = $this->builder->insert($data, true); - return $this->execute($sql, $params)->exec(); + return $this->execute($sql, $params)->exec(null, true); } /** diff --git a/src/Command.php b/src/Command.php index a9b3035..d277e5d 100644 --- a/src/Command.php +++ b/src/Command.php @@ -168,6 +168,7 @@ class Command extends Component { $pdo = $this->db->getConnect($this->sql); $result = $pdo->execute($this->sql, $isInsert, $this->params); + var_dump($result); if ($hasAutoIncrement && $result == 0) { return false; }