Skip to content

Commit 58ad1d9

Browse files
authored
Merge pull request doctrine#11709 from lyrixx/fix-event-doc
Fix `Events::onFlush` and `PostFlush()` documentation: events are always raised
2 parents f140651 + 346c498 commit 58ad1d9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Events.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,14 @@ private function __construct()
103103
* The onFlush event occurs when the EntityManager#flush() operation is invoked,
104104
* after any changes to managed entities have been determined but before any
105105
* actual database operations are executed. The event is only raised if there is
106-
* actually something to do for the underlying UnitOfWork. If nothing needs to be done,
107-
* the onFlush event is not raised.
106+
* actually something to do for the underlying UnitOfWork.
108107
*/
109108
public const onFlush = 'onFlush';
110109

111110
/**
112111
* The postFlush event occurs when the EntityManager#flush() operation is invoked and
113112
* after all actual database operations are executed successfully. The event is only raised if there is
114-
* actually something to do for the underlying UnitOfWork. If nothing needs to be done,
115-
* the postFlush event is not raised. The event won't be raised if an error occurs during the
113+
* actually something to do for the underlying UnitOfWork. The event won't be raised if an error occurs during the
116114
* flush operation.
117115
*/
118116
public const postFlush = 'postFlush';

0 commit comments

Comments
 (0)