lib/Doctrine/DBAL/Connection.php
public function setNestTransactionsWithSavepoints($nestTransactionsWithSavepoints)
    {
        if ($this->transactionNestingLevel > 0) {
            throw ConnectionException::mayNotAlterNestedTransactionWithSavepointsInTransaction();
        }

        if (! $this->getDatabasePlatform()->supportsSavepoints()) {
            throw ConnectionException::savepointsNotSupported();
        }

        $this->nestTransactionsWithSavepoints = (bool) $nestTransactionsWithSavepoints;
    }
public function setNestTransactionsWithSavepoints($nestTransactionsWithSavepoints)
    {
        if ($this->transactionNestingLevel > 0) {
            throw ConnectionException::mayNotAlterNestedTransactionWithSavepointsInTransaction();
        }

        if (! $this->getDatabasePlatform()->supportsSavepoints()) {
            throw ConnectionException::savepointsNotSupported();
        }

        $this->nestTransactionsWithSavepoints = (bool) $nestTransactionsWithSavepoints;
    }
public function setNestTransactionsWithSavepoints ( $ nestTransactionsWithSavepoints ) { if ( $ this -> transactionNestingLevel > 0 ) { throw ConnectionException :: mayNotAlterNestedTransactionWithSavepointsInTransaction ( ) ; } if ( ! $ this -> getDatabasePlatform ( ) -> supportsSavepoints ( ) ) { throw ConnectionException :: savepointsNotSupported ( ) ; } $ this -> nestTransactionsWithSavepoints = ( bool ) $ nestTransactionsWithSavepoints ; }
Sets if nested transactions should use savepoints.

@param bool $nestTransactionsWithSavepoints

@return void

@throws ConnectionException
Sets if nested transactions should use savepoints .