public function rollBack()
    {
        --$this->transaction_depth;

        // This means we rolled something back and now we lost track of commits
        if ($this->transaction_depth < 0) {
            $this->transaction_depth = 0;
        }

        if ($this->transaction_depth == 0) {
            return $this->dbh->rollBack();
        }

        return false;
    }
public function rollBack()
    {
        --$this->transaction_depth;

        // This means we rolled something back and now we lost track of commits
        if ($this->transaction_depth < 0) {
            $this->transaction_depth = 0;
        }

        if ($this->transaction_depth == 0) {
            return $this->dbh->rollBack();
        }

        return false;
    }
public function rollBack ( ) { -- $ this -> transaction_depth ; // This means we rolled something back and now we lost track of commits if ( $ this -> transaction_depth < 0 ) { $ this -> transaction_depth = 0 ; } if ( $ this -> transaction_depth == 0 ) { return $ this -> dbh -> rollBack ( ) ; } return false ; }
Rollbacks queries since beginTransaction and resets transaction depth.

@see beginTransaction()

@return mixed Don't rely on any meaningful return
Rollbacks queries since beginTransaction and resets transaction depth .