Skip to content

Commit

Permalink
- Added context option check for forceFlush in the inventorylevellogr…
Browse files Browse the repository at this point in the history
…ecord
  • Loading branch information
24198 committed Sep 30, 2020
1 parent ca7f87a commit fb69b55
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public function handleInventoryLevelUpdateAfterEvent(InventoryUpdateEvent $event
$context->getUser(),
$context->getRelatedEntity()
);

if ($context->getValue('forceFlush')) {
$em = $this->doctrineHelper->getEntityManagerForClass(InventoryLevelLogRecord::class);
$em->flush();
}
}


Expand Down

0 comments on commit fb69b55

Please sign in to comment.