DataDogAuditBundle icon indicating copy to clipboard operation
DataDogAuditBundle copied to clipboard

Doesn't log soft-delete events

Open newradius opened this issue 7 years ago • 2 comments
trafficstars

I can't get any soft-delete event logged. I'm using DoctrineExtensions for soft-delete but changes doesn't get logged as remove and neither as update.

newradius avatar Aug 31 '18 06:08 newradius

it may not support doctrine extensions at all.

l3pp4rd avatar Sep 04 '18 05:09 l3pp4rd

I think the soft-deleteable event listener fires pre and post events, so maybe create a listener for the pre-softdelete event then manually calling the audit subscriber flush?

something like:

public function onFlush(EventArgs $args)
{
	$ddas = $this->container->get('datadog.event_subscriber.audit');
	$ddas->onFlush($args);
}

chancegarcia avatar Sep 06 '18 18:09 chancegarcia