From 61eb1ee79353570cfcc9706ac028cf7e8bbf724d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20M=C3=BCller?= Date: Thu, 13 Feb 2014 01:40:44 +0100 Subject: [PATCH] simplify database platform retrieval --- lib/Doctrine/DBAL/Connection.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/DBAL/Connection.php b/lib/Doctrine/DBAL/Connection.php index b1f3d66cda1..3c54c18c3d6 100644 --- a/lib/Doctrine/DBAL/Connection.php +++ b/lib/Doctrine/DBAL/Connection.php @@ -322,12 +322,10 @@ public function getEventManager() */ public function getDatabasePlatform() { - if (null !== $this->platform) { - return $this->platform; + if (null == $this->platform) { + $this->detectDatabasePlatform(); } - $this->detectDatabasePlatform(); - return $this->platform; }