function Transaction::commitOrRelease

Returns the transaction to the parent nesting level.

Depending on the state of the transaction stack, this leads to a COMMIT operation (for a root item), or to a RELEASE SAVEPOINT operation (for a savepoint item) executed on the database.

File

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

Class

Transaction
A wrapper class for creating and managing database transactions.

Namespace

Drupal\Core\Database

Code

public function commitOrRelease() : void {
    $this->connection
        ->transactionManager()
        ->unpile($this->name, $this->id);
}

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