function TransactionManagerInterface::handleAutomaticCommit

Manages the occurrence of an automatic commit.

In some cases the active transaction is automatically committed by the database server when a DDL statement is executed during a transaction (for example, MySQL). In such cases we void the remaining items on the stack, and emit a TransactionAutoCommitEvent to notify that a database commit happened while the Drupal transaction was still active. Later, a normal TransactionCommitEvent is triggered when the Drupal transaction is finalized.

This method should only be called internally by a database driver.

1 method overrides TransactionManagerInterface::handleAutomaticCommit()
TransactionManagerBase::handleAutomaticCommit in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Manages the occurrence of an automatic commit.

File

core/lib/Drupal/Core/Database/Transaction/TransactionManagerInterface.php, line 149

Class

TransactionManagerInterface
Interface for the database transaction manager classes.

Namespace

Drupal\Core\Database\Transaction

Code

public function handleAutomaticCommit() : void;

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