1 database.inc public DatabaseTransaction::__destruct()

Destroy a database transaction object.

Throws

DatabaseTransactionCommitFailedException

File

core/includes/database/database.inc, line 2112
Core systems for the database layer.

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);
  }
}