core
core copied to clipboard
MetaModels\Filter\Setting\ICollection is not iterable
Shouldn´t the collections implement the Iterator interface? I wanted to get all filter-rules from the collection, but right now, there is no way to do this.
@discordier Milestone 2.0.0 or later?
- you can not get the list of rules. They get added to an
IFilterinstance by callingICollection::addRules(). - We could add this in 2.0.0 but we still have some works on the filters in the pipeline (which I wanted to discuss with @stefanheimes this evening during the call).
@davidmaack could you elaborate on your usecase some more? What do you need the list of child filter rules for?
I was trying to implement a filter, which counts the remainig items correctly. For my first approach I needed the child filters one by one. The solution works, but isn´t very good, so if you´re planing some rework on the filters you may just close this ticket.