-
Notifications
You must be signed in to change notification settings - Fork 823
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
ManyManyThroughList::removeAll() doesn’t respect filters #10104
Comments
Probably worth back porting all the way back to 4.9. |
Just to clarify: this doesn't remove the items, it removes the relations - and even then it's not removing the row from the through table, it's just setting the ID for one side of the relation to 0 (which IMO is absolutely not the correct behaviour). I'm going to update this to use the same logic used by |
@maxime-rainville, I've done tests on my local and ran unit tests as well. I could merge if you don't have any other questions. |
All happy |
Unlike
DataList
,HasManyList
andManyManyList
, when using many-many-throughManyManyThroughList::removeAll()
will discard all filters and remove everything:Acceptance criteria
removeAll
on a filteredManyManyThroughList
only remove relations for items matching the filter.PRs
The text was updated successfully, but these errors were encountered: