[PR #255] [CLOSED] When using a ManyToMany relationship no listener is notified about any change to the owning entity #7924

Closed
opened 2026-01-22 15:57:35 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/255
Author: @fran6co
Created: 1/12/2012
Status: Closed

Base: masterHead: 07048be8


📝 Commits (1)

  • 07048be When using a ManyToMany relationship no listener is notified about any change to the owning entity.

📊 Changes

1 file changed (+14 additions, -8 deletions)

View changed files

📝 lib/Doctrine/ORM/UnitOfWork.php (+14 -8)

📄 Description

What I'm doing with this patch is marking the entity for update when there is a modification in the ManyToMany relationship so the listeners are notified about it.

The main reason for this is for hooking up services like Solr or other indexers to update the entities even for ManyToMany relationships.


🔄 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/255 **Author:** [@fran6co](https://github.com/fran6co) **Created:** 1/12/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `07048be8` --- ### 📝 Commits (1) - [`07048be`](https://github.com/doctrine/orm/commit/07048be8c70e9e489136e1a40c935f60af48fdf5) When using a ManyToMany relationship no listener is notified about any change to the owning entity. ### 📊 Changes **1 file changed** (+14 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+14 -8) </details> ### 📄 Description What I'm doing with this patch is marking the entity for update when there is a modification in the ManyToMany relationship so the listeners are notified about it. The main reason for this is for hooking up services like Solr or other indexers to update the entities even for ManyToMany relationships. --- <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 15:57:35 +01:00
admin closed this issue 2026-01-22 15:57:35 +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#7924