Update::$expressionFields

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/Update.php \Drupal\Core\Database\Query\Update::expressionFields
  2. 8.9.x core/lib/Drupal/Core/Database/Query/Update.php \Drupal\Core\Database\Query\Update::expressionFields
  3. 11.x core/lib/Drupal/Core/Database/Query/Update.php \Drupal\Core\Database\Query\Update::expressionFields

Array of fields to update to an expression in case of a duplicate record.

This variable is a nested array in the following format:


<some field> => [
 'condition' => <condition to execute, as a string>,
 'arguments' => <array of arguments for condition, or NULL for none>,
];

Type: array

File

core/lib/Drupal/Core/Database/Query/Update.php, line 51

Class

Update
General class for an abstracted UPDATE operation.

Namespace

Drupal\Core\Database\Query

Code

protected $expressionFields = [];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.