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

checkin() public method

Checkin operation - Save all current changes and then check in the Node by id.
public checkin ( $document )
    public function checkin($document)
    {
        $path = $this->getVersionedNodePath($document);
        $vm = $this->session->getWorkspace()->getVersionManager();
        $vm->checkin($path);
        // Checkin Node aka make a new Version
    }

Usage Example

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