/** * Update entity document * @param EntityInterface $object * @return mixed */ protected function update(EntityInterface $object) { $params = $object->getAttributes(); $sql = (new Query())->update($this->dbClass)->where('@rid=?', $object->getRid())->set($params)->getRaw(); return $this->prepareClient()->command($sql); }