예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCompetitions()
 {
     return $this->hasMany(Competition::className(), ['sport_id' => 'id'])->inverseOf('sport');
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCompetitions()
 {
     return $this->hasMany(Competition::className(), ['events_set_id' => 'id'])->inverseOf('eventsSet');
 }
예제 #3
0
파일: _Rule.php 프로젝트: kleitz/golfleague
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCompetitions0()
 {
     return $this->hasMany(Competition::className(), ['final_rule_id' => 'id']);
 }
예제 #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCompetitions()
 {
     return $this->hasMany(Competition::className(), ['parent_id' => 'id']);
 }
예제 #5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCompetition()
 {
     return $this->hasOne(Competition::className(), ['id' => 'competition_id']);
 }