task: #3604286 Upsert - Allow to customize the behavior of the update when the...
task: #3604286 Upsert - Allow to customize the behavior of the update when the insert fails and use more Upsert queries in core
By: mondrake
By: daffie
By: amateescu
(cherry picked from commit 047e314b)
thrownew\InvalidArgumentException('An update expression must be keyed by its column name.');
}
$this->insertFields[]=$key;
$this->updateExpressions[$key]=$def;
}
elseif(is_string($key)){
thrownew\InvalidArgumentException(sprintf('The entry for "%s" must be a column name or an update expression keyed by column name. Pass insert values via the $values argument or the values() method.',$key));