This commit is contained in:
2021-02-25 19:35:09 +08:00
parent e3700fa7b6
commit 35d1025010
+1 -3
View File
@@ -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;