public function refresh($document)
{
$this->session->refresh(true);
$visited = array();
$this->doRefresh($document, $visited);
}
/** * {@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); }