/** * Complete the transaction associated with the current session. * * TODO: Make sure RollbackException and AccessDeniedException are thrown * by the transport if corresponding problems occur. * * @throws \PHPCR\Transaction\RollbackException if the transaction failed * and was rolled back rather than committed. * @throws AccessDeniedException if the session is not allowed to * commit the transaction. * @throws RepositoryException if the transaction implementation * encounters an unexpected error condition. */ public function commitTransaction() { $this->notifyItems('commitTransaction'); $this->transport->commitTransaction(); }