Increases the depth of transaction nesting.
If no transaction is already active, we begin a new transaction.
DatabaseTransactionNameNonUniqueException
Overrides DatabaseConnection::pushTransaction
public function pushTransaction($name) {
if ($this->savepointSupport) {
return parent::pushTransaction($name);
}
if (!$this
->supportsTransactions()) {
return;
}
if (isset($this->transactionLayers[$name])) {
throw new DatabaseTransactionNameNonUniqueException($name . " is already in use.");
}
if (!$this
->inTransaction()) {
PDO::beginTransaction();
}
$this->transactionLayers[$name] = $name;
}