extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Softdeleteable not Loggable

Open Leuloch opened this issue 7 years ago • 2 comments

Hi!

When those 2 extensions are combined the softdelete is not triggered in the audit-table of the entity. Not even an update. You would expect at least an update event is triggered because the timestamp of the deleteAt column is changed.

I saw in this tread: https://github.com/stof/StofDoctrineExtensionsBundle/issues/317 that we should change the Extension Priority.

Where can I set this config for Loggable extension?

Leuloch avatar Oct 24 '18 00:10 Leuloch

@Leuloch priority is symfony-only feature it's not available in laravel. I'm not sure, but what you can try is change the order of config('doctrine.extensions') array.

Also you can implement similar feature here, in laravel, in doctrine

any way PRs are welcome

vv12131415 avatar Apr 23 '19 15:04 vv12131415

Can confirm that this works:

change the order of config('doctrine.extensions') array.

I had to put it into the first position though.

juliocgs avatar Apr 25 '19 18:04 juliocgs