/**
  * @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']);
 }