/** * @return \yii\db\ActiveQuery */ public function getPokerEventLeagues() { return $this->hasMany(PokerEventLeague::className(), ['leagueid' => 'leagueid']); }
/** * @return \yii\db\ActiveQuery */ public function getEventLeaguesList() { return $this->hasMany(PokerEventLeague::className(), ['event_id' => 'id'])->with('league'); }