refresh() public method

public refresh ( $document )
Beispiel #1
0
 /**
  * {@inheritDoc}
  *
  * Refresh the given document by querying the PHPCR to get the current state.
  *
  * @param object $document
  *
  * @throws InvalidArgumentException if $document is not an object.
  */
 public function refresh($document)
 {
     if (!is_object($document)) {
         throw new InvalidArgumentException('Parameter $document needs to be an object, ' . gettype($document) . ' given');
     }
     $this->errorIfClosed();
     $this->unitOfWork->refresh($document);
 }