mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1065] [MERGED] [DDC-3179] EntityNotFoundException on the postRemove event if the entity is a proxy #9111
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/1065
Author: @egeloen
Created: 6/20/2014
Status: ✅ Merged
Merged: 6/26/2014
Merged by: @Ocramius
Base:
master← Head:DDC-3179📝 Commits (1)
20f96cc[DDC-3179] Document postRemove limitation📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
docs/en/reference/events.rst(+6 -0)📄 Description
This PR tries to fix 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.
For now, to fix it in our side, we have registered a listener on the preRemove event and load the proxy there.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.