diff --git a/lib/Doctrine/DBAL/Connection.php b/lib/Doctrine/DBAL/Connection.php index be66086aaf3..f3fad95f416 100644 --- a/lib/Doctrine/DBAL/Connection.php +++ b/lib/Doctrine/DBAL/Connection.php @@ -1590,7 +1590,7 @@ public function ping() } try { - $this->query($this->platform->getDummySelectSQL()); + $this->query($this->getDatabasePlatform()->getDummySelectSQL()); return true; } catch (DBALException $e) {