/** * @return \yii\db\ActiveQuery */ public function getSport() { return $this->hasOne(Sport::className(), ['id' => 'sport_id'])->inverseOf('eventsSets'); }
/** * @return \yii\db\ActiveQuery */ public function getSport() { return $this->hasOne(Sport::className(), ['id' => 'sport_id']); }