public function rollback(ConnectionInterface $connection)
    {
        $connectionId = $connection->getName();

        if ($this->transactionLevel > 1) {
            array_pop($this->pendingEvents[$connectionId][$this->transactionLevel]);
        } else {
            unset($this->pendingEvents[$connectionId]);
        }

        $this->transactionLevel--;
    }
public function rollback(ConnectionInterface $connection)
    {
        $connectionId = $connection->getName();

        if ($this->transactionLevel > 1) {
            array_pop($this->pendingEvents[$connectionId][$this->transactionLevel]);
        } else {
            unset($this->pendingEvents[$connectionId]);
        }

        $this->transactionLevel--;
    }
public function rollback ( ConnectionInterface $ connection ) { $ connectionId = $ connection -> getName ( ) ; if ( $ this -> transactionLevel > 1 ) { array_pop ( $ this -> pendingEvents [ $ connectionId ] [ $ this -> transactionLevel ] ) ; } else { unset ( $ this -> pendingEvents [ $ connectionId ] ) ; } $ this -> transactionLevel -- ; }
Clear enqueued events.

@param  \Illuminate\Database\ConnectionInterface  $connection
@return void
Clear enqueued events .