ItemActionAdditional::upsert(
[
[
'where' => [
'itemId' => 1,
'actionName' => 'Test',
],
'upsert' => [
'itemActionId' => '*' // Must be set `*`, this ID will be automatically added from `$selectModelClassName` by conditions from `where` param
'specialData' => '123456',
'description' => 'Hello',
],
],
// ... (more items)
],
['itemActionId', 'specialData'], // Must be set as unique key (name of columns must be presented or name of the key)
['description'], // Columns that will be updated
ItemAction::class, // Eloquent model, in this case must be set
[...] // Any columns that should be returned (Not
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.