We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39f8e5f commit c85c0cfCopy full SHA for c85c0cf
src/EventListener/AuditListener.php
@@ -201,6 +201,9 @@ public function onFlush(OnFlushEventArgs $args): void
201
continue;
202
}
203
$mapping = $collection->getMapping();
204
+ if (!is_array($mapping)) {
205
+ $mapping = $mapping->toArray();
206
+ }
207
if (!$mapping['isOwningSide'] || $mapping['type'] !== ClassMetadata::MANY_TO_MANY) {
208
continue; // ignore inverse side or one to many relations
209
0 commit comments