public function beginTransaction()
    {
        if ($this->currentTransactionLevel == 0 || !$this->nestable()) {
            parent::beginTransaction();
        } else {
            $this->exec("SAVEPOINT LEVEL{$this->currentTransactionLevel}");
        }
        ++$this->currentTransactionLevel;
        return true;
    }
public function beginTransaction()
    {
        if ($this->currentTransactionLevel == 0 || !$this->nestable()) {
            parent::beginTransaction();
        } else {
            $this->exec("SAVEPOINT LEVEL{$this->currentTransactionLevel}");
        }
        ++$this->currentTransactionLevel;
        return true;
    }
public function beginTransaction ( ) { if ( $ this -> currentTransactionLevel == 0 || ! $ this -> nestable ( ) ) { parent :: beginTransaction ( ) ; } else { $ this -> exec ( "SAVEPOINT LEVEL{$this->currentTransactionLevel}" ) ; } ++ $ this -> currentTransactionLevel ; return true ; }
PDO begin transaction override to work with savepoint capabilities for
supported SGBD. Allows nested transactions.
PDO begin transaction override to work with savepoint capabilities for supported SGBD . Allows nested transactions .