public function setTransactionIsolation($level) {
        if ($level === self::TRANSACTION_PLATFORM_DEFAULT) {
            $level = $this->dbalPlatform->getDefaultTransactionIsolationLevel();
        }
        
        $this->dbalConnection->setTransactionIsolation($level);
    }
public function setTransactionIsolation($level) {
        if ($level === self::TRANSACTION_PLATFORM_DEFAULT) {
            $level = $this->dbalPlatform->getDefaultTransactionIsolationLevel();
        }
        
        $this->dbalConnection->setTransactionIsolation($level);
    }
public function setTransactionIsolation ( $ level ) { if ( $ level === self :: TRANSACTION_PLATFORM_DEFAULT ) { $ level = $ this -> dbalPlatform -> getDefaultTransactionIsolationLevel ( ) ; } $ this -> dbalConnection -> setTransactionIsolation ( $ level ) ; }
Sets the transaction isolation level for the current connection.

Transaction levels are:

* common_persistence_sql_Platform::TRANSACTION_PLATFORM_DEFAULT
* common_persistence_sql_Platform::TRANSACTION_READ_UNCOMMITTED
* common_persistence_sql_Platform::TRANSACTION_READ_COMMITTED
* common_persistence_sql_Platform::TRANSACTION_REPEATABLE_READ
* common_persistence_sql_Platform::TRANSACTION_SERIALIZABLE

IT IS EXTREMELY IMPORTANT than after calling commit() or rollback(),
or in error handly, the developer sets back the initial transaction
level that was in force prior the call to beginTransaction().

@param integer $level The level to set.

@return integer
Sets the transaction isolation level for the current connection .