예제 #1
0
파일: Clubs.php 프로젝트: arsik/xfit
 public function getClubsVariants()
 {
     return $this->hasMany(Clubs::className(), ['clubID' => 'id']);
     //xz
 }
예제 #2
0
파일: Order.php 프로젝트: arsik/xfit
 public function getClubs()
 {
     return $this->hasOne(Clubs::className(), ['id' => 'clubID']);
 }
예제 #3
0
파일: City.php 프로젝트: arsik/xfit
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getClubs()
 {
     return $this->hasMany(Clubs::className(), ['cityID' => 'id']);
 }