[EasyDoctrine] Clear deferred entity events on flush exceptions#1792
Open
zeromodule wants to merge 3 commits into
Open
[EasyDoctrine] Clear deferred entity events on flush exceptions#1792zeromodule wants to merge 3 commits into
zeromodule wants to merge 3 commits into
Conversation
- Clear deferred entity events on flush exceptions - Remove stale deleted entities from the pool in the dispatcher
|
Code Review in Space: https://space.prod.v1.tools.eonx.com/p/support/reviews/188/timeline |
- Clear deferred entity events on flush exceptions - Remove stale deleted entities from the pool in the dispatcher
- Clear deferred entity events on flush exceptions - Remove stale deleted entities from the pool in the dispatcher
akl-95
approved these changes
Apr 22, 2026
Contributor
akl-95
left a comment
There was a problem hiding this comment.
Great job on the code review. ✅ Code approved!
Secure code in this PR has been written to best practice standards and covers the following as a minimum. Please ticket if coded this way (also tick if not relevant to this code change):
- Protect from Injection attacks
- Protect data with proper input validation, and protect against buffer overflows, pointers/shared data
- Protect with appropriate encryption and cryptography (E.g. Appropriate hashing, symmetric encryption used, ciphers) if applicable
- Protect against XSS and CSRF
- Ensure that pages, data access etc, are written with appropriate access control authorisation and authentication requirements
- Ensure all important errors and business logic cases are handled
- Ensure forwards and redirects are handled
- Ensure no sensitive data is exposed and appropriate logging in place as required
See procedure for more details: PROC-010 Secure Coding Practices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change prevents deferred entity events from surviving a failed Doctrine
flush().Without it, long-running workers could dispatch stale events from a previous failed message during a later successful
flush(). The fix ensures deferred state is cleared onflush()exceptions.