/** * {@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); }
/** * 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); }