Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-39

Proxy definition files doesn't get updated when changing Entity

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA2
    • Fix Version/s: 2.0-ALPHA3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Doctrine 2-trunk, No metadata caching, Postgresql

      Description

      Proxy definitions are generated in /tmp but not accordingly updated when their respective Entitiy-objects gets new methods, therefore _load() is never called on these new methods.

        Activity

        Hide
        Roman S. Borschel added a comment -

        I think we should do the following:

        • In development mode, the proxy class files should be regenerated automatically when changed. This has some overhead but for development its very convenient.
        • New CLI tasks for generating proxies: "generate-proxy-classes" ?
        Show
        Roman S. Borschel added a comment - I think we should do the following: In development mode, the proxy class files should be regenerated automatically when changed. This has some overhead but for development its very convenient. New CLI tasks for generating proxies: "generate-proxy-classes" ?
        Hide
        Roman S. Borschel added a comment -

        This should work better now in HEAD. Please refer to the updated Configuration chapter of the manual, especially the section and configuration options about proxy classes. Also there is a new CLI task to (re)generate proxy classes by hand. Proxy classes now behave like all other classes with regard to class loading.

        Show
        Roman S. Borschel added a comment - This should work better now in HEAD. Please refer to the updated Configuration chapter of the manual, especially the section and configuration options about proxy classes. Also there is a new CLI task to (re)generate proxy classes by hand. Proxy classes now behave like all other classes with regard to class loading.

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Nichlas Löfdahl
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: