LiamC

This is of course dynamic so it could be 25 fixtures with 10 winners. Or 11 winners. But we only want and need 10

LiamC

Hmm strange, maybe I could use filter any or partial match? I have an array of 3 IDs (winning numbers) but the dataobject I am getting only needs to have 2 of the 3 items in array. So it might not be working because its trying to find an entry with the 3 winning numbers not 2/3?

firesphere

Maybe it needs to be an array instead of ArrayData(), but that should work just fine otherwise afaik

LiamC

$win_array_data would have a list of IDs?

Joe

@LiamC does this not already work? I could’ve sworn I’ve done this before.

LiamC

$Winners = CustomEntryRecord::get()->filter(array('CustomDrawID' => $this->ID, 'Entries.ID' => $win_array_data));