1
0
mirror of synced 2025-02-20 22:23:14 +03:00

DDC-662 - Fix warning in ensureProductionSettings()

This commit is contained in:
Benjamin Eberlei 2010-07-02 00:36:31 +02:00
parent 6479fcec68
commit c5656eb039

View File

@ -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();
}
}