Jackalope\ObjectManager::commitTransaction PHP Method

commitTransaction() public method

TODO: Make sure RollbackException and AccessDeniedException are thrown by the transport if corresponding problems occur.
public commitTransaction ( )
    public function commitTransaction()
    {
        $this->notifyItems('commitTransaction');
        $this->transport->commitTransaction();
    }

Usage Example

Example #1
0
 /**
  * {@inheritDoc}
  *
  * TODO: Make sure RollbackException and AccessDeniedException are thrown
  * by the transport if corresponding problems occur
  *
  * @api
  */
 public function commit()
 {
     if (!$this->inTransaction) {
         throw new LogicException("No transaction to commit.");
     }
     $this->objectManager->commitTransaction();
     $this->inTransaction = false;
 }