Heroyt / tournament-generator

A set of classes used to create multiple kinds of tournament brackets in PHP
MIT License
60 stars 15 forks source link

Cannot set results #8

Open hobobemo opened 10 months ago

hobobemo commented 10 months ago

When using setResults method on a game, the method does not find the team in the array. I have even used an array within the game class to try ensure it wasnt my query such as [$game->getTeam($match->hometeam)->getId() => score] and still get the exception of 'Couldn\'t find team with id of "'.$id.'"'. I was going to fork and try to look at it, but there seems to be an issue with the array its looking at in the class.