/** * Update records with $data where the primary key equals to or is an element of $fieldValue * * Note: previous WHERE clauses are preserved * * @param mixed|array $key * @param array $data */ public function updateByPrimaryKey($key, array $data) { $this->updateByField($this->entity->getPrimaryKey(), $key, $data); }