public function getUpdateCriteria(PersistentObject $object) { $classMap = $object->getClassMap(); $criteria = new UpdateCriteria($classMap, $this); $criteria->setTransaction($object->getTransaction()); return $criteria; }
public function update(Entity $entity) { $criteria = new UpdateCriteria("UPDATE", $entity); return $criteria->execute(); }