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?

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));

LiamC

does anyone know if you can have a model admin of 2 dataobjects in 1 list?

LiamC

Yeah, I will go from the start of the code again and see if anything is erroring, atleast I know now the email bit I am doing is right

LiamC

it just doesnt loop the entries , very strange

LiamC

you can do it with or without the sign I believe ?