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

Closed
opened 2026-01-22 12:51:30 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 30, 2010).

Originally assigned to: @beberlei on GitHub.

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.

Originally created by @doctrinebot on GitHub (Jun 30, 2010). Originally assigned to: @beberlei on GitHub. 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.
admin added the Bug label 2026-01-22 12:51:30 +01:00
admin closed this issue 2026-01-22 12:51:32 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 30, 2010):

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.

@doctrinebot commented on GitHub (Jun 30, 2010): 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.
Author
Owner

@doctrinebot commented on GitHub (Jul 1, 2010):

Comment created by @beberlei:

fixed

@doctrinebot commented on GitHub (Jul 1, 2010): Comment created by @beberlei: fixed
Author
Owner

@doctrinebot commented on GitHub (Jul 1, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jul 1, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#815