diff --git a/tests/Doctrine/Tests/OrmFunctionalTestCase.php b/tests/Doctrine/Tests/OrmFunctionalTestCase.php index ad2c17fce..bc301ecfb 100644 --- a/tests/Doctrine/Tests/OrmFunctionalTestCase.php +++ b/tests/Doctrine/Tests/OrmFunctionalTestCase.php @@ -219,7 +219,7 @@ abstract class OrmFunctionalTestCase extends OrmTestCase protected function tearDown() { $conn = static::$_sharedConn; - $platform = $this->_em->getConnection()->getDatabasePlatform(); + $platform = $conn->getDatabasePlatform(); $this->_sqlLoggerStack->enabled = false;