rollback() public method

Rollback transaction, or throw exceptions if no transactions has been started.
public rollback ( )
Example #1
0
 /**
  * Rollback transaction
  *
  * Rollback transaction, or throw exceptions if no transactions has been started.
  *
  * @throws \RuntimeException If no transaction has been started
  *
  * @deprecated Since 5.3 {@use transactionHandler()->beginTransaction()}
  */
 public function rollback()
 {
     $this->transactionHandler->rollback();
 }