Doctrine\ODM\PHPCR\UnitOfWork::checkpoint PHP Method

checkpoint() public method

Create a version of the document and check it out right again to continue editing.
public checkpoint ( $document )
    public function checkpoint($document)
    {
        $path = $this->getVersionedNodePath($document);
        $vm = $this->session->getWorkspace()->getVersionManager();
        $vm->checkpoint($path);
    }

Usage Example

Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public function checkpoint($document)
 {
     if (!is_object($document)) {
         throw new InvalidArgumentException('Parameter $document needs to be an object, ' . gettype($document) . ' given');
     }
     $this->errorIfClosed();
     $this->unitOfWork->checkpoint($document);
 }
All Usage Examples Of Doctrine\ODM\PHPCR\UnitOfWork::checkpoint
UnitOfWork