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());
}
}