source/Core/Database/Adapter/Doctrine/Database.php
public function setTransactionIsolationLevel($level)
    {
        $result = false;
        $availableLevels = array_keys($this->transactionIsolationLevelMap);

        if (!in_array(strtoupper($level), $availableLevels)) {
            throw new \InvalidArgumentException();
        }

        try {
            if (in_array(strtoupper($level), $availableLevels)) {
                $result = $this->execute('SET SESSION TRANSACTION ISOLATION LEVEL ' . $level);
            }
        } catch (DBALException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        } catch (PDOException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        }

        return $result;
    }
public function setTransactionIsolationLevel($level)
    {
        $result = false;
        $availableLevels = array_keys($this->transactionIsolationLevelMap);

        if (!in_array(strtoupper($level), $availableLevels)) {
            throw new \InvalidArgumentException();
        }

        try {
            if (in_array(strtoupper($level), $availableLevels)) {
                $result = $this->execute('SET SESSION TRANSACTION ISOLATION LEVEL ' . $level);
            }
        } catch (DBALException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        } catch (PDOException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        }

        return $result;
    }
public function setTransactionIsolationLevel ( $ level ) { $ result = false ; $ availableLevels = array_keys ( $ this -> transactionIsolationLevelMap ) ; if ( ! in_array ( strtoupper ( $ level ) , $ availableLevels ) ) { throw new \ InvalidArgumentException ( ) ; } try { if ( in_array ( strtoupper ( $ level ) , $ availableLevels ) ) { $ result = $ this -> execute ( 'SET SESSION TRANSACTION ISOLATION LEVEL ' . $ level ) ; } } catch ( DBALException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } catch ( PDOException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } return $ result ; }
Set the transaction isolation level.
Allowed values 'READ UNCOMMITTED', 'READ COMMITTED', 'REPEATABLE READ' and 'SERIALIZABLE'.

NOTE: Currently the transaction isolation level is set on the database session and not globally.
Setting the transaction isolation level globally requires root privileges in MySQL an this application should not
be executed with root privileges.
If you need to set the transaction isolation level globally, ask your database administrator to do so,
This method is MySQL specific, as we use the MySQL syntax for setting the transaction isolation level.

@see Doctrine::transactionIsolationLevelMap

@param string $level The transaction isolation level

@throws \InvalidArgumentException|DatabaseErrorException     *

@return bool|integer
Set the transaction isolation level . Allowed values READ UNCOMMITTED READ COMMITTED REPEATABLE READ and SERIALIZABLE .