Skip to content

Fix Events::onFlush and PostFlush() documentation: events are always raised#11709

Merged
greg0ire merged 1 commit intodoctrine:2.20.xfrom
lyrixx:fix-event-doc
Nov 18, 2024
Merged

Fix Events::onFlush and PostFlush() documentation: events are always raised#11709
greg0ire merged 1 commit intodoctrine:2.20.xfrom
lyrixx:fix-event-doc

Conversation

@lyrixx
Copy link
Copy Markdown
Contributor

@lyrixx lyrixx commented Nov 7, 2024

Improvement

Q A
New Feature no
RFC no
BC Break no

Summary

see

orm/src/UnitOfWork.php

Lines 399 to 413 in 9e2bfa8

if (
! ($this->entityInsertions ||
$this->entityDeletions ||
$this->entityUpdates ||
$this->collectionUpdates ||
$this->collectionDeletions ||
$this->orphanRemovals)
) {
$this->dispatchOnFlushEvent();
$this->dispatchPostFlushEvent();
$this->postCommitCleanup($entity);
return; // Nothing to do.
}

@greg0ire greg0ire added this to the 2.20.1 milestone Nov 18, 2024
@greg0ire greg0ire merged commit 58ad1d9 into doctrine:2.20.x Nov 18, 2024
@greg0ire
Copy link
Copy Markdown
Member

Thanks @lyrixx !

@lyrixx lyrixx deleted the fix-event-doc branch November 18, 2024 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants