dorsetdigital

That may be more memory-efficient, depending on how well the ORM deals with the chained filters vs the array of filters

dorsetdigital

Might not even need to do it with multiple filter() calls.

  1. $list->filter([
  2. 'Content:PartialMatch' => $value1,
  3. 'Content:PartialMatch' => $value2,
  4. 'Content:PartialMatch' => $value3
  5. ]);
👍 (1)
Conan

I didn't think about using :PartialMatch multiple times, nice catch 😎

dorsetdigital

Yeah, split the query up and reduce it with multiple queries then.. should work

zauberfisch

I thought he wants a set that contains all of the 3 values not just 1 of them

dorsetdigital

I'd have thought using a filterAny() would make more sense