示例#1
0
 public function rollback(Transaction $transaction)
 {
     $transaction->rollback();
 }
示例#2
-1
 /**
  * Rollsback a DB transaction if valid
  *
  * @param null|Transaction $transaction
  */
 protected static function tranRollback($transaction)
 {
     if ($transaction && $transaction instanceof Transaction) {
         $transaction->rollback();
     }
 }