src/db/mysql/MySQLConnector.php
public function begin() {
        if ($this->transactionLevel < 0) throw new RuntimeException('Negative transaction nesting level detected: '.$this->transactionLevel);

        if (!$this->transactionLevel)
            $this->execute('start transaction');

        $this->transactionLevel++;
        return $this;
    }
public function begin() {
        if ($this->transactionLevel < 0) throw new RuntimeException('Negative transaction nesting level detected: '.$this->transactionLevel);

        if (!$this->transactionLevel)
            $this->execute('start transaction');

        $this->transactionLevel++;
        return $this;
    }
public function begin ( ) { if ( $ this -> transactionLevel < 0 ) throw new RuntimeException ( 'Negative transaction nesting level detected: ' . $ this -> transactionLevel ) ; if ( ! $ this -> transactionLevel ) $ this -> execute ( 'start transaction' ) ; $ this -> transactionLevel ++ ; return $ this ; }
Start a new transaction. If there is already an active transaction only the transaction nesting level is increased.

@return $this
Start a new transaction . If there is already an active transaction only the transaction nesting level is increased .