Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TransactionManagerInterface.php

function TransactionManagerInterface::voidClientTransaction

Voids the client connection.

In some cases the active transaction can be automatically committed by the database server (for example, MySql when a DDL statement is executed during a transaction). In such cases we need to void the remaining items on the stack so that when outliving Transaction object get out of scope the do not try operations on the database.

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

1 method overrides TransactionManagerInterface::voidClientTransaction()
TransactionManagerBase::voidClientTransaction in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Voids the client connection.

File

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

Class

TransactionManagerInterface
Interface for the database transaction manager classes.

Namespace

Drupal\Core\Database\Transaction

Code

public function voidClientTransaction() : void;
RSS feed
Powered by Drupal