Skip to content

DDC-662: Missing default value for attribute 'AutoGenerateProxyClasses' #5172

doctrinebot opened this Issue Jun 30, 2010 · 3 comments

2 participants


Jira issue originally created by user mstoehr:

When not setting the attribute 'AutoGenerateProxyClasses' and running orm:ensure-production-settings an exception is thrown:

Notice: Undefined index: autoGenerateProxyClasses in Doctrine/ORM/lib/Doctrine/ORM/Configuration.php on line 332

There should be a default value set or a notice that this attribute is mandatory.


Comment created by romanb:

the code inside the method that checks the production settings should simply use the getters instead of accessing the attributes array directly. So: $this->getAutoGenerateProxyClasses() instead of $this->_attributes[....].

The default values are encapsulated in the getter methods to avoid having a large array with default values that grows with each new setting even if the setting is never used.


Comment created by @beberlei:



Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-BETA3 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.