/** * {@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); }
/** * Do a checkin operation followed immediately by a checkout operation. * * A new version is created and the writable document stays in checked out state * * @param object $document The document * * @return void */ public function checkpoint($document) { if (!is_object($document)) { throw new \InvalidArgumentException(gettype($document)); } $this->errorIfClosed(); $this->unitOfWork->checkpoint($document); }
/** * Do a checkin operation followed immediately by a checkout operation. * * A new version is created and the writable document stays in checked out state * * @param object $document The document * * @return void */ public function checkpoint($document) { $this->errorIfClosed(); $this->unitOfWork->checkpoint($document); }