[PR #1065] [MERGED] [DDC-3179] EntityNotFoundException on the postRemove event if the entity is a proxy #9111

Open
opened 2026-01-22 16:03:14 +01:00 by admin · 0 comments
Owner

📋 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: masterHead: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/1065 **Author:** [@egeloen](https://github.com/egeloen) **Created:** 6/20/2014 **Status:** ✅ Merged **Merged:** 6/26/2014 **Merged by:** [@Ocramius](https://github.com/Ocramius) **Base:** `master` ← **Head:** `DDC-3179` --- ### 📝 Commits (1) - [`20f96cc`](https://github.com/doctrine/orm/commit/20f96cc9d35e23fc3bfcd1671878c18e0acea618) [DDC-3179] Document postRemove limitation ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/en/reference/events.rst` (+6 -0) </details> ### 📄 Description 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. For now, to fix it in our side, we have registered a listener on the preRemove event and load the proxy there. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:03:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9111