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

Implement MassPrunable without chunks limit #2598

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
9 checks passed
@GromNaN GromNaN deleted the mass-prunable branch September 5, 2023 07:46
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

Successfully merging this pull request may close these issues.

None yet

3 participants