Beispiel #1
0
 /**
  * Returns an update query for the given persistent object $class.
  *
  * The query is initialized to update the correct table and
  * it is only neccessary to set the correct values.
  *
  * Attention: If you use a query generated by this method to update
  * objects, the internal {@link ezcPersistentIdentityMap} will be completly
  * reset. This is neccessary to avoid inconsistencies, because the session
  * cannot trace which objects are updated by the query.
  *
  * @throws ezcPersistentDefinitionNotFoundException
  *         if there is no such persistent class.
  *
  * @param string $class
  *
  * @return ezcQueryUpdate
  */
 public function createUpdateQuery($class)
 {
     return $this->session->createUpdateQuery($class);
 }