Пример #1
0
 public function getClubsVariants()
 {
     return $this->hasMany(Clubs::className(), ['clubID' => 'id']);
     //xz
 }
Пример #2
0
 public function getClubs()
 {
     return $this->hasOne(Clubs::className(), ['id' => 'clubID']);
 }
Пример #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getClubs()
 {
     return $this->hasMany(Clubs::className(), ['cityID' => 'id']);
 }