We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f73710b + 75bbbe8 commit a879fb6Copy full SHA for a879fb6
1 file changed
src/Worker.php
@@ -101,7 +101,7 @@ private function assertGoodDatabaseConnection()
101
foreach ($this->managerRegistry->getManagers() as $entityManager) {
102
$connection = $entityManager->getConnection();
103
104
- if ($connection->ping() === false) {
+ if (!$connection->isConnected()) {
105
$connection->close();
106
$connection->connect();
107
}
0 commit comments