public function Transaction::__destruct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Transaction.php \Drupal\Core\Database\Transaction::__destruct()
File
- core/
lib/ Drupal/ Core/ Database/ Transaction.php, line 71 - Contains \Drupal\Core\Database\Transaction.
Class
- Transaction
- A wrapper class for creating and managing database transactions.
Namespace
Drupal\Core\DatabaseCode
public function __destruct() {
// If we rolled back then the transaction would have already been popped.
if (!$this->rolledBack) {
$this->connection
->popTransaction($this->name);
}
}