mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-662: Missing default value for attribute 'AutoGenerateProxyClasses' #815
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 332There should be a default value set or a notice that this attribute is mandatory.
@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 (Jul 1, 2010):
Comment created by @beberlei:
fixed
@doctrinebot commented on GitHub (Jul 1, 2010):
Issue was closed with resolution "Fixed"