function TransactionManager::rollbackClientTransaction
Same name in this branch
- 11.x core/modules/sqlite/src/Driver/Database/sqlite/TransactionManager.php \Drupal\sqlite\Driver\Database\sqlite\TransactionManager::rollbackClientTransaction()
- 11.x core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php \Drupal\mysql\Driver\Database\mysql\TransactionManager::rollbackClientTransaction()
Same name in other branches
- 10 core/modules/sqlite/src/Driver/Database/sqlite/TransactionManager.php \Drupal\sqlite\Driver\Database\sqlite\TransactionManager::rollbackClientTransaction()
- 10 core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php \Drupal\mysql\Driver\Database\mysql\TransactionManager::rollbackClientTransaction()
- 10 core/modules/pgsql/src/Driver/Database/pgsql/TransactionManager.php \Drupal\pgsql\Driver\Database\pgsql\TransactionManager::rollbackClientTransaction()
Overrides TransactionManagerBase::rollbackClientTransaction
File
-
core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ TransactionManager.php, line 25
Class
- TransactionManager
- PostgreSql implementation of TransactionManagerInterface.
Namespace
Drupal\pgsql\Driver\Database\pgsqlCode
protected function rollbackClientTransaction() : bool {
$clientRollback = $this->connection
->getClientConnection()
->rollBack();
$this->setConnectionTransactionState($clientRollback ? ClientConnectionTransactionState::RolledBack : ClientConnectionTransactionState::RollbackFailed);
return $clientRollback;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.