[PR #76] [CLOSED] Added the postFlush event to the Event Manager for successful flushes; fi #7679

Open
opened 2026-01-22 15:56:18 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/76
Author: @choult
Created: 6/21/2011
Status: Closed

Base: masterHead: postFlush


📝 Commits (1)

  • 13a4ce0 Added the postFlush event to the Event Manager for successful flushes; fixed a comment in OnFlushEventArgs

📊 Changes

5 files changed (+252 additions, -133 deletions)

View changed files

📝 lib/Doctrine/ORM/Event/OnFlushEventArgs.php (+10 -10)
lib/Doctrine/ORM/Event/PostFlushEventArgs.php (+79 -0)
📝 lib/Doctrine/ORM/Events.php (+31 -24)
📝 lib/Doctrine/ORM/UnitOfWork.php (+90 -85)
📝 tests/Doctrine/Tests/ORM/Functional/FlushEventTest.php (+42 -14)

📄 Description

Added the postFlush event to the Event Manager for successful flushes; fixed a comment in OnFlushEventArgs

What this adds is the ability to detect when a successful flush has occurred for operations outside of Doctrine that depend on this - e.g. Doctrine event-driven SOLR indexing at persistence where we want our index to match our database


🔄 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/76 **Author:** [@choult](https://github.com/choult) **Created:** 6/21/2011 **Status:** ❌ Closed **Base:** `master` ← **Head:** `postFlush` --- ### 📝 Commits (1) - [`13a4ce0`](https://github.com/doctrine/orm/commit/13a4ce0235e7e686a86e6222f99a83bf3c2b4211) Added the postFlush event to the Event Manager for successful flushes; fixed a comment in OnFlushEventArgs ### 📊 Changes **5 files changed** (+252 additions, -133 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Event/OnFlushEventArgs.php` (+10 -10) ➕ `lib/Doctrine/ORM/Event/PostFlushEventArgs.php` (+79 -0) 📝 `lib/Doctrine/ORM/Events.php` (+31 -24) 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+90 -85) 📝 `tests/Doctrine/Tests/ORM/Functional/FlushEventTest.php` (+42 -14) </details> ### 📄 Description Added the postFlush event to the Event Manager for successful flushes; fixed a comment in OnFlushEventArgs What this adds is the ability to detect when a successful flush has occurred for operations outside of Doctrine that depend on this - e.g. Doctrine event-driven SOLR indexing at persistence where we want our index to match our database --- <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:56:18 +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#7679