From 346c49832c08ca9ea6a95352fbcb7c921431eda2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Thu, 7 Nov 2024 12:07:37 +0100 Subject: [PATCH] Fix `Events::onFlush` and `PostFlush()` documentation: events are always raised see https://github.com/doctrine/orm/blob/9e2bfa816957920697d686678f0a0bf68fd30298/src/UnitOfWork.php#L399-L413 --- src/Events.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Events.php b/src/Events.php index e8f123e488b..4695a7fb772 100644 --- a/src/Events.php +++ b/src/Events.php @@ -103,16 +103,14 @@ private function __construct() * The onFlush event occurs when the EntityManager#flush() operation is invoked, * after any changes to managed entities have been determined but before any * actual database operations are executed. The event is only raised if there is - * actually something to do for the underlying UnitOfWork. If nothing needs to be done, - * the onFlush event is not raised. + * actually something to do for the underlying UnitOfWork. */ public const onFlush = 'onFlush'; /** * The postFlush event occurs when the EntityManager#flush() operation is invoked and * after all actual database operations are executed successfully. The event is only raised if there is - * actually something to do for the underlying UnitOfWork. If nothing needs to be done, - * the postFlush event is not raised. The event won't be raised if an error occurs during the + * actually something to do for the underlying UnitOfWork. The event won't be raised if an error occurs during the * flush operation. */ public const postFlush = 'postFlush';