checkin() public method

Checkin operation - Save all current changes and then check in the Node by id.
public checkin ( $document )
Beispiel #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);
 }
 /**
  * Create a new version of the document that has been previously persisted
  * and flushed.
  *
  * The state that is stored is the one from the last flush, not from the
  * current document state.
  *
  * The document is made read only until you call checkout again.
  *
  * @see checkpoint
  *
  * @param object $document
  */
 public function checkin($document)
 {
     if (!is_object($document)) {
         throw new \InvalidArgumentException(gettype($document));
     }
     $this->errorIfClosed();
     $this->unitOfWork->checkin($document);
 }
Beispiel #3
0
 /**
  * Create a new version of the document that has been previously persisted
  * and flushed.
  *
  * The state that is stored is the one from the last flush, not from the
  * current document state.
  *
  * The document is made read only until you call checkout again.
  *
  * @see checkpoint
  *
  * @param object $document
  */
 public function checkin($document)
 {
     $this->errorIfClosed();
     $this->unitOfWork->checkin($document);
 }