Beispiel #1
0
 /**
  * Syncronizes the contents of $object with the database.
  *
  * Note that calling this method is equavalent with calling {@link
  * loadIntoObject()} on $object with the ID of $object. Any changes made
  * to $object prior to calling refresh() will be discarded.
  *
  * The refreshing of an object will result in its identity being refreshed
  * automatically.
  *
  * @throws ezcPersistentObjectException
  *         if $object is not of a valid persistent object type.
  * @throws ezcPersistentObjectException
  *         if $object is not persistent already.
  * @throws ezcPersistentObjectException
  *         if the select query failed.
  *
  * @param ezcPersistentObject $object
  */
 public function refresh($object)
 {
     $this->session->refresh($object);
 }