public function patch($pk, $values) { $query = $this->getQueryClass(); $this->mapPk($query, $pk); $item = $query->findOne(); $this->mapValues($item, $values, true); return $item->save() ? true : false; }