Skip to content

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
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.

3 participants