diff --git a/src/DBAL/Connection.php b/src/DBAL/Connection.php index 12acab7..c63d741 100644 --- a/src/DBAL/Connection.php +++ b/src/DBAL/Connection.php @@ -192,11 +192,9 @@ public function prepareUnwrapped($sql) */ public function validateReconnectAttempt(DBALException $e, $attempt) { -/** removing to test and see if this resolves the issue at hand - if (!$this->getTransactionNestingLevel()) { - return false; - }**/ - + if ($this->isTransactionActive()) { + return false; + } if ($this->reconnectAttempts && $attempt < $this->reconnectAttempts) { $reconnectExceptions = $this->_driver->getReconnectExceptions(); $message = $e->getMessage();