function MergeQuery::updateFields
Adds a set of field->value pairs to be updated.
Parameters
$fields: An associative array of fields to write into the database. The array keys are the field names and the values are the values to which to set them.
Return value
MergeQuery The called object.
File
-
includes/
database/ query.inc, line 1394
Class
- MergeQuery
- General class for an abstracted MERGE query operation.
Code
public function updateFields(array $fields) {
$this->updateFields = $fields;
$this->needsUpdate = TRUE;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.