DDC-699: ProxyFactory: allow to overwrite $_proxyClassTemplate to allow custom criterias during execution of _load() #863

Closed
opened 2026-01-22 12:53:04 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 19, 2010).

Jira issue originally created by user mzach:

It would be nice to set custom criteria to be used during _load(), so that not only the identifier is used, but also this criteria (specially thinking about a SoftDelete behaviour where relations are filtered BEFORE they're actually loaded).

Of course, a note needs to be added explaining the risk of modifying the proxy class structure.

Originally created by @doctrinebot on GitHub (Jul 19, 2010). Jira issue originally created by user mzach: It would be nice to set custom criteria to be used during _load(), so that not only the identifier is used, but also this criteria (specially thinking about a SoftDelete behaviour where relations are filtered BEFORE they're actually loaded). Of course, a note needs to be added explaining the risk of modifying the proxy class structure.
admin added the Improvement label 2026-01-22 12:53:04 +01:00
admin closed this issue 2026-01-22 12:53:06 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jul 19, 2010):

@doctrinebot commented on GitHub (Jul 19, 2010): - relates to [DDC-391: Allow to specifiy custom Entity and Collection Persister classes](http://www.doctrine-project.org/jira/browse/DDC-391)
Author
Owner

@doctrinebot commented on GitHub (Jul 20, 2010):

Comment created by @beberlei:

This is the wrong extension point for something like soft-delete. It needs to be done inside the Persister. A ticket exists to add the possibility to specifiy your own persister, this would suffice to implement SoftDelete.

@doctrinebot commented on GitHub (Jul 20, 2010): Comment created by @beberlei: This is the wrong extension point for something like soft-delete. It needs to be done inside the Persister. A ticket exists to add the possibility to specifiy your own persister, this would suffice to implement SoftDelete.
Author
Owner

@doctrinebot commented on GitHub (Jul 20, 2010):

Issue was closed with resolution "Won't Fix"

@doctrinebot commented on GitHub (Jul 20, 2010): Issue was closed with resolution "Won't Fix"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#863