Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-1076

It should be possible to supply EntityManager with a custom ProxyFactory


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


      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.


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


          • Assignee:
            beberlei Benjamin Eberlei
            putgeminmouth David Reisch
          • Votes:
            2 Vote for this issue
            2 Start watching this issue


            • Created: