Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-662

Missing default value for attribute 'AutoGenerateProxyClasses'

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA2
    • Fix Version/s: 2.0-BETA3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Roman S. Borschel added a comment - - edited

        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.

        Show
        Roman S. Borschel added a comment - - edited 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.
        Hide
        Benjamin Eberlei added a comment -

        fixed

        Show
        Benjamin Eberlei added a comment - fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Marcus Stöhr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: