改名
This commit is contained in:
@@ -96,11 +96,9 @@ class SqlBuilder extends Component
|
|||||||
public function insert(array $attributes, $isBatch = false): array
|
public function insert(array $attributes, $isBatch = false): array
|
||||||
{
|
{
|
||||||
$update = sprintf('INSERT INTO %s', $this->tableName());
|
$update = sprintf('INSERT INTO %s', $this->tableName());
|
||||||
if ($isBatch === true) {
|
if ($isBatch === false) {
|
||||||
$attributes = [$attributes];
|
$attributes = [$attributes];
|
||||||
}
|
}
|
||||||
|
|
||||||
var_dump($attributes);
|
|
||||||
$update .= '(' . implode(',', $this->getFields($attributes)) . ') VALUES ';
|
$update .= '(' . implode(',', $this->getFields($attributes)) . ') VALUES ';
|
||||||
|
|
||||||
$order = 0;
|
$order = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user