Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1076

It should be possible to supply EntityManager with a custom ProxyFactory

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      It is plausible that one might want to handle the loading of proxy classes in their own way, perhaps not using the filename/class scheme doctrine currently comes with.

      Currently the only way to provide your own implementation of ProxyFactory is to subclass EntityManager. Even this is not clean since one also must copy/paste the EntityManager::create factory method to get identical behavior.

      It would be nice if there was a ProxyFactory interface and one could provide an instance of it to Doctrine\ORM\Configuration when creating an EntityManager.

        Activity

        David Reisch created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 12493 ] jira-feedback [ 13915 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13915 ] jira-feedback2 [ 15779 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15779 ] jira-feedback3 [ 18036 ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            David Reisch
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: