This commit is contained in:
Torsten 2017-10-25 10:42:05 +02:00
parent ed0c445bfa
commit 30f6157606
15 changed files with 248 additions and 169 deletions

View file

@ -23,7 +23,11 @@ class Match extends Model
// https://en.wikipedia.org/wiki/Round-robin_tournament
public static function createMatchups()
{ Log::info("Match::Creating matchups()");
{ // should be restricted to league ranks 1,2,3 and 4. All other leagues will have to use some
// incremental matchmaking system.
Log::info("Match::Creating matchups()");
$currentSeason = Season::getCurrent();
$leagues = League::where('season_id', '=', $currentSeason->id)->get();
foreach ($leagues as $league) {