Beispiel #1
0
 /**
  * Ensures that this Configuration instance contains settings that are
  * suitable for a production environment.
  * 
  * @throws DoctrineException If a configuration setting has a value that is not
  *                           suitable for a production environment.
  */
 public function ensureProductionSettings()
 {
     if (!$this->_attributes['queryCacheImpl']) {
         throw DoctrineException::queryCacheNotConfigured();
     }
     if (!$this->_attributes['metadataCacheImpl']) {
         throw DoctrineException::metadataCacheNotConfigured();
     }
     if ($this->_attributes['autoGenerateProxyClasses']) {
         throw DoctrineException::proxyClassesAlwaysRegenerating();
     }
 }