From ac1f4082d5f6f26e34f23b48bd2c9dac53ab3220 Mon Sep 17 00:00:00 2001 From: romanetar Date: Tue, 10 Nov 2026 14:04:20 +0100 Subject: [PATCH 1/6] refactor(audit): add a shared many-to-many collection change formatter to the base formatter --- app/Audit/AbstractAuditLogFormatter.php | 64 +++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/app/Audit/AbstractAuditLogFormatter.php b/app/Audit/AbstractAuditLogFormatter.php index 6cad9869a..580c01dda 100644 --- a/app/Audit/AbstractAuditLogFormatter.php +++ b/app/Audit/AbstractAuditLogFormatter.php @@ -74,6 +74,70 @@ protected function processCollection(PersistentCollectionMetadata $metadata): ?a ]; } + /** + * Shared handler for EVENT_COLLECTION_MANYTOMANY_UPDATE / DELETE (ADR-004). + * + * Runs the two-step pipeline (handleManyToManyCollection -> processCollection) and builds + * "