Doctrine Common
  1. Doctrine Common
  2. DCOM-189

Doctrine Proxies may conflict with interfaced constructors

    Details

    • Type: Improvement Improvement
    • Status: Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None

      Description

      The Doctrine ProxyGenerator generates for a proxy a constructor. The documentation of Doctrine states that the constructor is never called. For a project, I created a group of entities with a interfaced constructor in order to enforce a common interface. This results in a incompatible proxy and so a fatal error.

        Activity

        Harmen M created issue -
        Marco Pivetta made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Benjamin Eberlei [ beberlei ] Marco Pivetta [ ocramius ]
        Resolution Can't Fix [ 7 ]
        Marco Pivetta made changes -
        Resolution Can't Fix [ 7 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Marco Pivetta made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Can't Fix [ 7 ]
        Marco Pivetta made changes -
        Comment [ Cannot fix this - the constructor is required to override instantiation logic ]
        Harmen M made changes -
        Summary Doctrine Proxies have a constructor Doctrine Proxies may conflict with interfaced constructors
        Description The Doctrine ProxyGenerator generates for a proxy a constructor. The documentation of Doctrine states that the constructor is never called. For a project, I created a group of entities with a interfaced constructor in order to enforce a common interface. This results in a incompatible proxy and so a fatal error.
        Marco Pivetta made changes -
        Resolution Can't Fix [ 7 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Marco Pivetta made changes -
        Issue Type Bug [ 1 ] Documentation [ 6 ]
        Marco Pivetta made changes -
        Issue Type Documentation [ 6 ] Improvement [ 4 ]
        Marco Pivetta made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        Guilherme Blanco made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Assignee Marco Pivetta [ ocramius ] Guilherme Blanco [ guilhermeblanco ]
        Fix Version/s 2.5.0 [ 10526 ]
        Resolution Invalid [ 6 ]
        Marco Pivetta made changes -
        Resolution Invalid [ 6 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Guilherme Blanco [ guilhermeblanco ] Marco Pivetta [ ocramius ]

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Harmen M
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: