示例#1
0
 /**
  * Rollback transaction
  *
  * Rollback transaction, or throw exceptions if no transactions has been started.
  *
  * @throws RuntimeException If no transaction has been started
  */
 public function rollback()
 {
     try {
         $this->persistenceHandler->rollback();
         --$this->transactionDepth;
         unset($this->commitEventsQueue[$this->transactionCount]);
     } catch (Exception $e) {
         throw new RuntimeException($e->getMessage(), 0, $e);
     }
 }