Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't log soft-delete events #49

Open
newradius opened this issue Aug 31, 2018 · 2 comments
Open

Doesn't log soft-delete events #49

newradius opened this issue Aug 31, 2018 · 2 comments

Comments

@newradius
Copy link

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.

@l3pp4rd
Copy link
Member

l3pp4rd commented Sep 4, 2018

it may not support doctrine extensions at all.

@chancegarcia
Copy link
Contributor

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants