/** * @return \yii\db\ActiveQuery */ public function getSplatfests() { return $this->hasMany(Splatfest::className(), ['region_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getFests() { return $this->hasMany(Splatfest::className(), ['id' => 'fest_id'])->viaTable('splatfest_team', ['team_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getFest() { return $this->hasOne(Splatfest::className(), ['id' => 'fest_id']); }