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

Softdeleteable not Loggable #42

Open
Leuloch opened this issue Oct 24, 2018 · 2 comments
Open

Softdeleteable not Loggable #42

Leuloch opened this issue Oct 24, 2018 · 2 comments

Comments

@Leuloch
Copy link

Leuloch commented Oct 24, 2018

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: stof/StofDoctrineExtensionsBundle#317 that we should change the Extension Priority.

Where can I set this config for Loggable extension?

@vv12131415
Copy link

@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

@juliocgs
Copy link

juliocgs commented Apr 25, 2019

Can confirm that this works:

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

I had to put it into the first position though.

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