-
Notifications
You must be signed in to change notification settings - Fork 195
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
DetachedCriteria.deleteAll() ignores criteria created via lazyWhere #1306
Comments
@douglyuckling I believe it should work when you use |
Nvm, I just noticed that you already mentioned it on the repo README. |
Fixes issue where deleteAll and updateAll was not applying the whereLazy criteria.
Thanks, @puneetbehl! Any chance we could get this fixed on the 6.1.x branch, too? We're not quite ready to upgrade to 7.0.x yet, and in the meantime it would be easy for someone to forget to add the workaround mentioned above. 😬 |
Fixes issue where deleteAll and updateAll was not applying the whereLazy criteria.
@douglyuckling It is done. |
Fixes issue where deleteAll and updateAll was not applying the whereLazy criteria.
Task List
Steps to Reproduce
DetachedCriteria
for the domain class viawhereLazy()
and specify some reasonable criteriadeleteAll()
on the criteria.Expected Behaviour
Only the data matching the specified criteria is deleted.
Actual Behaviour
The specified criteria are ignored and all data for the domain class is deleted.
Environment Information
Example Application
https://github.com/douglyuckling/gorm-lazy-criteria-bug
The text was updated successfully, but these errors were encountered: