public function force_transaction_rollback() {
        if ($this->transactions) {
            try {
                $this->rollback_transaction();
            } catch (dml_exception $e) {
                // ignore any sql errors here, the connection might be broken
            }
        }

        // now enable transactions again
        $this->transactions = array();
        $this->force_rollback = false;

        \core\event\manager::database_transaction_rolledback();
        \core\message\manager::database_transaction_rolledback();
    }
public function force_transaction_rollback() {
        if ($this->transactions) {
            try {
                $this->rollback_transaction();
            } catch (dml_exception $e) {
                // ignore any sql errors here, the connection might be broken
            }
        }

        // now enable transactions again
        $this->transactions = array();
        $this->force_rollback = false;

        \core\event\manager::database_transaction_rolledback();
        \core\message\manager::database_transaction_rolledback();
    }
public function force_transaction_rollback ( ) { if ( $ this -> transactions ) { try { $ this -> rollback_transaction ( ) ; } catch ( dml_exception $ e ) { // ignore any sql errors here, the connection might be broken } } // now enable transactions again $ this -> transactions = array ( ) ; $ this -> force_rollback = false ; \ core \ event \ manager :: database_transaction_rolledback ( ) ; \ core \ message \ manager :: database_transaction_rolledback ( ) ; }
Force rollback of all delegated transaction.
Does not throw any exceptions and does not log anything.

This method should be used only from default exception handlers and other
core code.

@return void
Force rollback of all delegated transaction . Does not throw any exceptions and does not log anything .