doctrine/doctrine2 — pull request #1065 by egeloen (2014-06-20 12:16:04+00:00)
Title: [DDC-3179] EntityNotFoundException on the postRemove event if the entity is a proxy

This PR tries to fix [DDC-3179](http://www.doctrine-project.org/jira/browse/DDC-3179).

I'm not sure if it is the way to go as this PR has a big drawback: it **always** loads proxies which needs to be removed regardless if there is an postRemove event for it. Anyway, there is no way to determine if there is an event for a specific entity in a lifecycle callback context.