protected function findParticipantModel($id)
 {
     if (($model = TeamTournaments::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
 public function actionGames($id)
 {
     $games = new ArrayDataProvider(['allModels' => Result::getParticipantGames($id), 'pagination' => false]);
     $tournament = TeamTournaments::findOne($id);
     $team = TeamTournaments::findOne($id);
     return $this->render('gamesGuest', compact('games', 'tournament', 'team'));
 }