diff --git a/lib/Doctrine/DBAL/Connection.php b/lib/Doctrine/DBAL/Connection.php index a60bc2f7a73..b710b4a42e2 100644 --- a/lib/Doctrine/DBAL/Connection.php +++ b/lib/Doctrine/DBAL/Connection.php @@ -32,6 +32,7 @@ use Doctrine\DBAL\Cache\ArrayStatement; use Doctrine\DBAL\Cache\CacheException; use Doctrine\DBAL\Driver\PingableConnection; +use Throwable; /** * A wrapper around a Doctrine\DBAL\Driver\Connection that adds features like @@ -1103,6 +1104,9 @@ public function transactional(Closure $func) } catch (Exception $e) { $this->rollBack(); throw $e; + } catch (Throwable $e) { + $this->rollBack(); + throw $e; } }