src/Native5/Core/Database/DB.php
public function commitTransaction() {
        // check that a transaction is really active - do not check/renew the connection - renewing a connection breaks the transaction
        if (!$this->getConnection(false)->inTransaction())
            throw new \Exception("Not inside a DB transaction. Cannot commit.");

        try {
            $this->getConnection(false)->commit();
        } catch (Exception $_e) {
            throw new \Exception("Error while committing DB transaction: ".$pe->getMessage());
        }
    }
public function commitTransaction() {
        // check that a transaction is really active - do not check/renew the connection - renewing a connection breaks the transaction
        if (!$this->getConnection(false)->inTransaction())
            throw new \Exception("Not inside a DB transaction. Cannot commit.");

        try {
            $this->getConnection(false)->commit();
        } catch (Exception $_e) {
            throw new \Exception("Error while committing DB transaction: ".$pe->getMessage());
        }
    }
public function commitTransaction ( ) { // check that a transaction is really active - do not check/renew the connection - renewing a connection breaks the transaction if ( ! $ this -> getConnection ( false ) -> inTransaction ( ) ) throw new \ Exception ( "Not inside a DB transaction. Cannot commit." ) ; try { $ this -> getConnection ( false ) -> commit ( ) ; } catch ( Exception $ _e ) { throw new \ Exception ( "Error while committing DB transaction: " . $ pe -> getMessage ( ) ) ; } }
commitTransaction Commit begun database transaction

@access public
@return void
@throws Exception if not inside a transaction of if could not commit transaction successfuly
commitTransaction Commit begun database transaction