Connection::$transactionLayers
Same name in other branches
- 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::transactionLayers
- 8.9.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::transactionLayers
Tracks the number of "layers" of transactions currently active.
On many databases transactions cannot nest. Instead, we track nested calls to transactions and collapse them into a single transaction.
Type: array
Deprecated
in drupal:10.2.0 and is removed from drupal:11.0.0. The transaction stack is now managed by TransactionManager.
See also
https://www.drupal.org/node/3381002
File
-
core/
lib/ Drupal/ Core/ Database/ Connection.php, line 72
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
protected $transactionLayers = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.