We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b825c6 + 9c78401 commit 0a55691Copy full SHA for 0a55691
src/DoctrineListener/DoctrineAuditListener.php
@@ -80,6 +80,11 @@ public function onFlush(OnFlushEventArgs $args): void
80
}
81
82
foreach ($unitOfWork->getScheduledEntityDeletions() as $entityDeletion) {
83
+ $auditTrailAttributes = (new ReflectionClass($entityDeletion))->getAttributes(AuditTrail::class);
84
+ if (empty($auditTrailAttributes)) {
85
+ return;
86
+ }
87
+
88
$properties = $this->getProperties(
89
$entityDeletion,
90
$unitOfWork,
0 commit comments