diff --git a/core/lib/Drupal/Core/Database/Query/Upsert.php b/core/lib/Drupal/Core/Database/Query/Upsert.php index b1858e9..cc6d10c 100644 --- a/core/lib/Drupal/Core/Database/Query/Upsert.php +++ b/core/lib/Drupal/Core/Database/Query/Upsert.php @@ -68,6 +68,8 @@ class Upsert extends Query { protected $updateFields = array(); /** + * An array of values used in the updated. + * * @var array */ protected $updateValues = array(); @@ -136,17 +138,16 @@ public function updateFields(array $fields) { } /** - * A list of fields to update to the same value as they would be on INSERT. + * Specifies an array of values used to update the database. * - * @param array $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. + * @param array $values + * An array of values. * * @return $this * The called object. */ - public function updateValues(array $fields) { - $this->updateValues = $fields; + public function updateValues(array $values) { + $this->updateValues = $values; $this->needsUpdate = TRUE; return $this; }