src/Native5/Core/Database/DB.php
public function beginTransaction() {
        // check if a transaction is already active
        if ($this->getConnection()->inTransaction())
            throw new \Exception("Already inside a DB transaction. You need to commit it before beginning a new one.");

        try {
            // No need to check for the connection again
            $this->getConnection(false)->beginTransaction();
        } catch (Exception $_e) {
            throw new \Exception("Error while beginning DB transaction: ".$pe->getMessage());
        }
    }
public function beginTransaction() {
        // check if a transaction is already active
        if ($this->getConnection()->inTransaction())
            throw new \Exception("Already inside a DB transaction. You need to commit it before beginning a new one.");

        try {
            // No need to check for the connection again
            $this->getConnection(false)->beginTransaction();
        } catch (Exception $_e) {
            throw new \Exception("Error while beginning DB transaction: ".$pe->getMessage());
        }
    }
public function beginTransaction ( ) { // check if a transaction is already active if ( $ this -> getConnection ( ) -> inTransaction ( ) ) throw new \ Exception ( "Already inside a DB transaction. You need to commit it before beginning a new one." ) ; try { // No need to check for the connection again $ this -> getConnection ( false ) -> beginTransaction ( ) ; } catch ( Exception $ _e ) { throw new \ Exception ( "Error while beginning DB transaction: " . $ pe -> getMessage ( ) ) ; } }
beginTransaction Begin database transaction

@access public
@return void
@throws Exception if already inside a transaction of if could not begin transaction successfuly
beginTransaction Begin database transaction