src/ORM/Connect/MySQLDatabase.php
protected function getTransactionManager()
    {
        if (!$this->transactionManager) {
            // PDOConnector providers this
            if ($this->connector instanceof TransactionManager) {
                $this->transactionManager = new NestedTransactionManager($this->connector);
            // Direct database access does not
            } else {
                $this->transactionManager = new NestedTransactionManager(new MySQLTransactionManager($this));
            }
        }
        return $this->transactionManager;
    }
protected function getTransactionManager()
    {
        if (!$this->transactionManager) {
            // PDOConnector providers this
            if ($this->connector instanceof TransactionManager) {
                $this->transactionManager = new NestedTransactionManager($this->connector);
            // Direct database access does not
            } else {
                $this->transactionManager = new NestedTransactionManager(new MySQLTransactionManager($this));
            }
        }
        return $this->transactionManager;
    }
protected function getTransactionManager ( ) { if ( ! $ this -> transactionManager ) { // PDOConnector providers this if ( $ this -> connector instanceof TransactionManager ) { $ this -> transactionManager = new NestedTransactionManager ( $ this -> connector ) ; // Direct database access does not } else { $ this -> transactionManager = new NestedTransactionManager ( new MySQLTransactionManager ( $ this ) ) ; } } return $ this -> transactionManager ; }
Returns the TransactionManager to handle transactions for this database.

@return TransactionManager
Returns the TransactionManager to handle transactions for this database .