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

checkout() public method

Check out operation - Save all current changes and then check out the Node by path.
public checkout ( $document )
    public function checkout($document)
    {
        $path = $this->getVersionedNodePath($document);
        $vm = $this->session->getWorkspace()->getVersionManager();
        $vm->checkout($path);
    }

Usage Example

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