예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTour()
 {
     return $this->hasOne(Tour::className(), ['id' => 'tour_id']);
 }
예제 #2
0
파일: Concert.php 프로젝트: acyuta/zvezdy
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTours()
 {
     return $this->hasMany(Tour::className(), ['concert_id' => 'id']);
 }
예제 #3
0
 /**
  * relation to tour table
  */
 public function getTours()
 {
     return $this->hasMany(Tour::className(), ['id_tourtype' => 'id']);
 }
예제 #4
0
파일: Comment.php 프로젝트: zlapot/sitev2
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdTour()
 {
     return $this->hasOne(Tour::className(), ['id' => 'id_tour']);
 }