Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DatabaseTransaction::__destruct

File

includes/database/database.inc, line 2017

Class

DatabaseTransaction
A wrapper class for creating and managing database transactions.

Code

public function __destruct() {
 // If we rolled back then the transaction would have already been popped.
 if (!$this->rolledBack ) {
 $this->connection 
 ->popTransaction ($this->name );
 }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.