I have a list of dataobjects of which I'm trying to return all objects that match certain years e.g all objects that match 2015, 2013, 2002 etc
I first attempted to use ExactMatchMulti as per the question here: Silverstripe - filter DataObject list by many many relationship
However this has now been deprecated and Silverstripe suggests I use ExactMatchFilter instead. However I can't find much documentation/code usages of ExactMatchFilter so I'm not sure how to use it. Replacing ExactMatchMulti with ExactMatchFilter throws an exception.
$things->filter('PublicationDate:ExactMatchFilter', $filters);
Where $filters is just a simple array of years.
Does anyone have any examples or suggestions for this?
(Using 3.2.1)