예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTour()
 {
     return $this->hasOne(Tours::className(), ['id' => 'id_tour']);
 }
예제 #2
0
 public function getTour()
 {
     return $this->hasOne(Tours::className(), [Tours::FIELD_TOUR_ID => self::FIELD_TOUR_ID]);
 }
예제 #3
0
파일: Hotels.php 프로젝트: ximbimbim/vitur
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTours()
 {
     return $this->hasMany(Tours::className(), ['hotel_fk' => 'id']);
 }