Jackalope\Transport\DoctrineDBAL\Client::commitTransaction PHP Method

commitTransaction() public method

{@inheritDoc}
public commitTransaction ( )
    public function commitTransaction()
    {
        if (!$this->inTransaction) {
            throw new RepositoryException('Commit transaction failed: no transaction open');
        }
        $this->assertLoggedIn();
        try {
            $this->inTransaction = false;
            $this->getConnection()->commit();
            if ($this->originalNamespaces) {
                // now that the transaction is committed, reset the cache of the stored namespaces.
                $this->originalNamespaces = null;
            }
        } catch (\Exception $e) {
            throw new RepositoryException('Commit transaction failed: ' . $e->getMessage());
        }
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function commitTransaction()
 {
     parent::commitTransaction();
     $this->clearCaches(array_keys($this->caches));
 }
All Usage Examples Of Jackalope\Transport\DoctrineDBAL\Client::commitTransaction