Loading core/lib/Drupal/Core/Database/Transaction.php +7 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,13 @@ public function __destruct() { $this->connection->transactionManager()->purge($this->name, $this->id); } /** * Prevent transactions from being unserialized. */ public function __wakeup(): void { throw new \BadMethodCallException('Cannot unserialize ' . get_class($this)); } /** * Retrieves the name of the transaction or savepoint. */ Loading Loading
core/lib/Drupal/Core/Database/Transaction.php +7 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,13 @@ public function __destruct() { $this->connection->transactionManager()->purge($this->name, $this->id); } /** * Prevent transactions from being unserialized. */ public function __wakeup(): void { throw new \BadMethodCallException('Cannot unserialize ' . get_class($this)); } /** * Retrieves the name of the transaction or savepoint. */ Loading