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

Breadcrumb

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

function Connection::commitAll

Commits all the open transactions.

@internal This method exists only to work around a bug caused by Drupal incorrectly relying on object destruction order to commit transactions. Xdebug 3.3.0 changes the order of object destruction when the develop mode is enabled.

File

core/lib/Drupal/Core/Database/Connection.php, line 226

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function commitAll() {
    $manager = $this->transactionManager();
    if ($manager->inTransaction() && method_exists($manager, 'commitAll')) {
        $this->transactionManager()
            ->commitAll();
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal