Transaction::__destruct

public Transaction::__destruct()

File

core/lib/Drupal/Core/Database/Transaction.php, line 66

Class

Transaction
A wrapper class for creating and managing database transactions.

Namespace

Drupal\Core\Database

Code

public function __destruct() {
  // If we rolled back then the transaction would have already been popped.
  if (!$this->rolledBack) {
    $this->connection->popTransaction($this->name);
  }
}
doc_Drupal
2016-10-29 09:48:59
Comments
Leave a Comment

Please login to continue.