TransactionNoActiveException

Exception for when popTransaction() is called with no active transaction. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\TransactionNoActiveException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionNoActiveException.php, line 8 Namespace Drupal\Core\Database Members

TransactionOutOfOrderException

Exception thrown when a rollback() resulted in other active transactions being rolled-back. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\TransactionOutOfOrderException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionOutOfOrderException.php, line 8 Namespace Drupal\Core\Database Members

TranslatableInterface

Interface for translatable data. Hierarchy interface \Drupal\Core\TypedData\TranslatableInterface File core/lib/Drupal/Core/TypedData/TranslatableInterface.php, line 8 Namespace Drupal\Core\TypedData Members Name Modifiers Type Description TranslatableInterface::addTranslation public function Adds a new translation to the translatable object. TranslatableInterface::getTranslation public function Gets a translation of the data. TranslatableInterface::getTranslat

TransactionCommitFailedException

Exception thrown when a commit() function fails. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\TransactionCommitFailedException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionCommitFailedException.php, line 8 Namespace Drupal\Core\Database Members

Transaction::__construct

public Transaction::__construct(Connection $connection, $name = NULL) File core/lib/Drupal/Core/Database/Transaction.php, line 48 Class Transaction A wrapper class for creating and managing database transactions. Namespace Drupal\Core\Database Code public function __construct(Connection $connection, $name = NULL) { $this->connection = $connection; // If there is no transaction depth, then no transaction has started. Name // the transaction 'drupal_transaction'. if (!$depth =

Transaction::rollback

public Transaction::rollback() Rolls back the current transaction. This is just a wrapper method to rollback whatever transaction stack we are currently in, which is managed by the connection object itself. Note that logging (preferable with watchdog_exception()) needs to happen after a transaction has been rolled back or the log messages will be rolled back too. See also \Drupal\Core\Database\Connection::rollback() watchdog_exception() File core/lib/Drupal/Core/Database/Transaction.php, line

Transaction::__destruct

public Transaction::__destruct() File core/lib/Drupal/Core/Database/Transaction.php, line 66 Class Transaction A wrapper class for creating and managing database transactions. Namespace Drupal\Core\Database Code public function __destruct() { // If we rolled back then the transaction would have already been popped. if (!$this->rolledBack) { $this->connection->popTransaction($this->name); } }

TransactionException

Exception thrown by an error in a database transaction. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionException.php, line 8 Namespace Drupal\Core\Database Members

TransactionExplicitCommitNotAllowedException

Exception to deny attempts to explicitly manage transactions. This exception will be thrown when the PDO connection commit() is called. Code should never call this method directly. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\TransactionExplicitCommitNotAllowedException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionExplicitCommitNotAllowedException.php, line 11 Nam

Transaction

PostgreSQL implementation of \Drupal\Core\Database\Transaction. Hierarchy class \Drupal\Core\Database\Transactionclass \Drupal\Core\Database\Driver\pgsql\Transaction File core/lib/Drupal/Core/Database/Driver/pgsql/Transaction.php, line 10 Namespace Drupal\Core\Database\Driver\pgsql Members Name Modifiers Type Description Transaction::$connection protected property The connection object for this transaction. Transaction::$name protected property The name of the t