diff --git a/Database/SqlBuilder.php b/Database/SqlBuilder.php index 46b18190..fb7ece63 100644 --- a/Database/SqlBuilder.php +++ b/Database/SqlBuilder.php @@ -96,11 +96,9 @@ class SqlBuilder extends Component public function insert(array $attributes, $isBatch = false): array { $update = sprintf('INSERT INTO %s', $this->tableName()); - if ($isBatch === true) { + if ($isBatch === false) { $attributes = [$attributes]; } - - var_dump($attributes); $update .= '(' . implode(',', $this->getFields($attributes)) . ') VALUES '; $order = 0;