/** * @return \yii\db\ActiveQuery */ public function getGames() { return $this->hasMany(Games::className(), ['season_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getGame() { return $this->hasOne(Games::className(), ['id' => 'game_id']); }
/** * @return \yii\db\ActiveQuery */ public function getGamesGuest() { return $this->hasMany(Games::className(), ['guest_id' => 'id']); }