Mellivora/Database/Concerns/ManagesTransactions.php
protected function performRollBack($toLevel)
    {
        if ($toLevel === 0) {
            $this->getPdo()->rollBack();
        } elseif ($this->queryGrammar->supportsSavepoints()) {
            $this->getPdo()->exec(
                $this->queryGrammar->compileSavepointRollBack('trans' . ($toLevel + 1))
            );
        }
    }
protected function performRollBack($toLevel)
    {
        if ($toLevel === 0) {
            $this->getPdo()->rollBack();
        } elseif ($this->queryGrammar->supportsSavepoints()) {
            $this->getPdo()->exec(
                $this->queryGrammar->compileSavepointRollBack('trans' . ($toLevel + 1))
            );
        }
    }
protected function performRollBack ( $ toLevel ) { if ( $ toLevel === 0 ) { $ this -> getPdo ( ) -> rollBack ( ) ; } elseif ( $ this -> queryGrammar -> supportsSavepoints ( ) ) { $ this -> getPdo ( ) -> exec ( $ this -> queryGrammar -> compileSavepointRollBack ( 'trans' . ( $ toLevel + 1 ) ) ) ; } }
Perform a rollback within the database.

@param int $toLevel

@return void
Perform a rollback within the database .