/** * @return \yii\db\ActiveQuery */ public function getLeague() { return $this->hasOne(DotaLeague::className(), ['id' => 'league_id']); }