Skip to content

Commit

Permalink
Update lib/Doctrine/ORM/UnitOfWork.php
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <[email protected]>
  • Loading branch information
mpdude and greg0ire authored Aug 22, 2023
1 parent df12a79 commit 8836f08
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,13 @@ private function executeInserts(): void
// Defer dispatching `postPersist` events to until all entities have been inserted and post-insert
// IDs have been assigned.
foreach ($eventsToDispatch as $event) {
$this->listenersInvoker->invoke($event['class'], Events::postPersist, $event['entity'], new PostPersistEventArgs($event['entity'], $this->em), $event['invoke']);
$this->listenersInvoker->invoke(
$event['class'],
Events::postPersist,
$event['entity'],
new PostPersistEventArgs($event['entity'], $this->em),
$event['invoke']
);
}
}

Expand Down

0 comments on commit 8836f08

Please sign in to comment.