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

Closed
doctrinebot opened this Issue Jul 19, 2010 · 3 comments

1 participant

@doctrinebot

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.

@doctrinebot

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

Issue was closed with resolution "Won't Fix"

@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment