From c5656eb039456d97e765901f727f1ed0ebad0cf0 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Fri, 2 Jul 2010 00:36:31 +0200 Subject: [PATCH] DDC-662 - Fix warning in ensureProductionSettings() --- lib/Doctrine/ORM/Configuration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Configuration.php b/lib/Doctrine/ORM/Configuration.php index 75b66453e..994e65e62 100644 --- a/lib/Doctrine/ORM/Configuration.php +++ b/lib/Doctrine/ORM/Configuration.php @@ -323,13 +323,13 @@ class Configuration extends \Doctrine\DBAL\Configuration */ public function ensureProductionSettings() { - if ( ! $this->_attributes['queryCacheImpl']) { + if ( !$this->getQueryCacheImpl()) { throw ORMException::queryCacheNotConfigured(); } - if ( ! $this->_attributes['metadataCacheImpl']) { + if ( !$this->getMetadataCacheImpl()) { throw ORMException::metadataCacheNotConfigured(); } - if ($this->_attributes['autoGenerateProxyClasses']) { + if ($this->getAutoGenerateProxyClasses()) { throw ORMException::proxyClassesAlwaysRegenerating(); } }