DDC-3180: [GH-1065] [DDC-3179] EntityNotFoundException on the postRemove event if the entity is a proxy #3942

Closed
opened 2026-01-22 14:32:02 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 20, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of egeloen:

Url: https://github.com/doctrine/doctrine2/pull/1065

Message:

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

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.

Originally created by @doctrinebot on GitHub (Jun 20, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of egeloen: Url: https://github.com/doctrine/doctrine2/pull/1065 Message: This PR tries to fix [[DDC-3179](http://www.doctrine-project.org/jira/browse/DDC-3179)](http://www.doctrine-project.org/jira/browse/[DDC-3179]%28http://www.doctrine-project.org/jira/browse/DDC-3179%29). 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.
admin added the Bug label 2026-01-22 14:32:02 +01:00
admin closed this issue 2026-01-22 14:32:03 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 20, 2014):

@doctrinebot commented on GitHub (Jun 20, 2014): - depends on [DDC-3179: Non initialized Proxy object with post remove listener](http://www.doctrine-project.org/jira/browse/DDC-3179)
Author
Owner

@doctrinebot commented on GitHub (Jun 26, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1065] was closed:
https://github.com/doctrine/doctrine2/pull/1065

@doctrinebot commented on GitHub (Jun 26, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-1065] was closed: https://github.com/doctrine/doctrine2/pull/1065
Author
Owner

@doctrinebot commented on GitHub (Jun 26, 2014):

Comment created by @ocramius:

Documented as known limitation, merged at 9e36a95a97

@doctrinebot commented on GitHub (Jun 26, 2014): Comment created by @ocramius: Documented as known limitation, merged at https://github.com/doctrine/doctrine2/commit/9e36a95a978ac2cf8297b430368f8473c6ab67fb
Author
Owner

@doctrinebot commented on GitHub (Jun 26, 2014):

Issue was closed with resolution "Won't Fix"

@doctrinebot commented on GitHub (Jun 26, 2014): 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#3942