[PR #887] [CLOSED] DDC-2871 PreFlush event called multiple times in event manager. #8850

Closed
opened 2026-01-22 16:01:59 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/887
Author: @Strate
Created: 12/25/2013
Status: Closed

Base: masterHead: bugfix/DDC-2871


📝 Commits (1)

  • 630ad49 DDC-2871 PreFlush event called multiple times in event manager.

📊 Changes

2 files changed (+82 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/UnitOfWork.php (+2 -1)
tests/Doctrine/Tests/ORM/Functional/PreFlushEventTest.php (+80 -0)

📄 Description

PreFlush event called multiple times in event manager.
In this fix while computing entity changeset preFlush event will be called only in callbacks and entity listeners, not in event manager.

more discuddion here: http://www.doctrine-project.org/jira/browse/DDC-2871


🔄 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/887 **Author:** [@Strate](https://github.com/Strate) **Created:** 12/25/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `bugfix/DDC-2871` --- ### 📝 Commits (1) - [`630ad49`](https://github.com/doctrine/orm/commit/630ad4977b7d3dd2b064c662c5829135e621fd4d) DDC-2871 PreFlush event called multiple times in event manager. ### 📊 Changes **2 files changed** (+82 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+2 -1) ➕ `tests/Doctrine/Tests/ORM/Functional/PreFlushEventTest.php` (+80 -0) </details> ### 📄 Description PreFlush event called multiple times in event manager. In this fix while computing entity changeset preFlush event will be called only in callbacks and entity listeners, not in event manager. more discuddion here: http://www.doctrine-project.org/jira/browse/DDC-2871 --- <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:01:59 +01:00
admin closed this issue 2026-01-22 16:01:59 +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#8850