mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 21:44:28 +02:00
Fixed inspection issues
This commit is contained in:
parent
5f29ee9052
commit
de96aae9a5
36 changed files with 55 additions and 53 deletions
|
@ -97,7 +97,7 @@ class EventLoggerSubscriber implements EventSubscriber
|
|||
|
||||
public function onFlush(OnFlushEventArgs $eventArgs): void
|
||||
{
|
||||
$em = $eventArgs->getEntityManager();
|
||||
$em = $eventArgs->getObjectManager();
|
||||
$uow = $em->getUnitOfWork();
|
||||
|
||||
/*
|
||||
|
@ -156,7 +156,7 @@ class EventLoggerSubscriber implements EventSubscriber
|
|||
|
||||
public function postFlush(PostFlushEventArgs $args): void
|
||||
{
|
||||
$em = $args->getEntityManager();
|
||||
$em = $args->getObjectManager();
|
||||
$uow = $em->getUnitOfWork();
|
||||
// If the we have added any ElementCreatedLogEntries added in postPersist, we flush them here.
|
||||
$uow->computeChangeSets();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue