Skip to content

Commit c85c0cf

Browse files
matthieuJonqetindjeto
authored andcommitted
feat(update): add new condition for doctrine mapping result on auditListener
1 parent 39f8e5f commit c85c0cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/EventListener/AuditListener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ public function onFlush(OnFlushEventArgs $args): void
201201
continue;
202202
}
203203
$mapping = $collection->getMapping();
204+
if (!is_array($mapping)) {
205+
$mapping = $mapping->toArray();
206+
}
204207
if (!$mapping['isOwningSide'] || $mapping['type'] !== ClassMetadata::MANY_TO_MANY) {
205208
continue; // ignore inverse side or one to many relations
206209
}

0 commit comments

Comments
 (0)