mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #76] [CLOSED] Added the postFlush event to the Event Manager for successful flushes; fi #7679
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/76
Author: @choult
Created: 6/21/2011
Status: ❌ Closed
Base:
master← Head:postFlush📝 Commits (1)
13a4ce0Added 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.