If the document not exists so a user can hook into and create a fallback objekt to prevent a exception.
I have seen it was a bad diff. Now you can see the right changes. This stuff we have in production since 1 year and it works fine :).
@ocramius: Thoughts on this? I believe there will be some conflict resolution necessary if #506 gets merged afterwards. Other than that, I think it's good -- perhaps ORM would be interested in this as well. /cc @jwage
@tecbot don't inject the event manager. Instead, you can add this event to the initializer in #506, which saves us a LOT of work in serialization/unserialization (and GC).
@jmikola I'd say #506 first, then adding this logic to the initializer of the proxy instead of the proxy itself.
👍 for this feature. I can see myself using this to lazily clean up references.
Just to confirm, this is blocked by #506, which in turn is being blocked by doctrine/common 2.4 (ETA is 2 weeks).
added "documentNotFound" event to hook in the proxy initialization pr…
…ocess if its failed
Can we rebase the PR?
Superseded by #1336.