Skip to content

Implement MassPrunable without chunks limit #2598

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Sep 4, 2023

Fix #2597

Custom implementation of MassPrunable is required to prevent using the limit. #2591 added an exception when limited is used because MongoDB Delete operation doesn't support it.

Prunable feature was introducted in Laravel 8.x by laravel/framework#37889.

Users have to be aware that MassPrunable can break relationships as it doesn't call model methods to remove links.

@GromNaN GromNaN merged commit 810d0c9 into mongodb:master Sep 5, 2023
@GromNaN GromNaN deleted the mass-prunable branch September 5, 2023 07:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants