Message of the day:
SS 4.4.0-RC1 is out. Changelog: https://github.com/silverstripe/silverstripe-framework/blob/4.4/docs/en/04_Changelogs/4.4.0.md
SilverStripe 4 related information and questions.
This is of course dynamic so it could be 25 fixtures with 10 winners. Or 11 winners. But we only want and need 10
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?
Maybe it needs to be an array instead of ArrayData(), but that should work just fine otherwise afaik
That should work out of the box me thinks @LiamC
@Brad Vatne has joined the channel
@John Learn has joined the channel
$Winners = CustomEntryRecord::get()->filter(array('CustomDrawID' => $this->ID, 'Entries.ID' => $win_array_data));