DDC-1076: It should be possible to supply EntityManager with a custom ProxyFactory #1344

Open
opened 2026-01-22 13:11:10 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 24, 2011).

Originally assigned to: @billschaller on GitHub.

Jira issue originally created by user putgeminmouth:

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.

Originally created by @doctrinebot on GitHub (Mar 24, 2011). Originally assigned to: @billschaller on GitHub. Jira issue originally created by user putgeminmouth: 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.
admin added the ImprovementWon't Fix labels 2026-01-22 13:11:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1344