-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
databaseIssues or pull requests that affect the database layerIssues or pull requests that affect the database layerquestion
Description
CodeIgniter4/system/Database/BaseBuilder.php
Lines 1639 to 1641 in fbc5afa
public function setInsertBatch($key, string $value = '', ?bool $escape = null) | |
{ | |
$key = $this->batchObjectToArray($key); |
CodeIgniter4/system/Database/BaseBuilder.php
Lines 2032 to 2034 in fbc5afa
public function setUpdateBatch($key, string $index = '', ?bool $escape = null) | |
{ | |
$key = $this->batchObjectToArray($key); |
The the first param type is not set. So you can pass an object.
But what kind of object?
The answer is like this:
$insertData = (object) [
'id' => [
1,
2,
],
'name' => [
'name1',
'name2',
],
'description' => [
'description1',
'description2',
],
];
That's how the current implementation works, but is that the intended specification?
Metadata
Metadata
Assignees
Labels
databaseIssues or pull requests that affect the database layerIssues or pull requests that affect the database layerquestion