Doctrine\ODM\PHPCR\UnitOfWork::refresh PHP Метод

refresh() публичный Метод

public refresh ( $document )
    public function refresh($document)
    {
        $this->session->refresh(true);
        $visited = array();
        $this->doRefresh($document, $visited);
    }

Usage Example

Пример #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);
 }
UnitOfWork