/** * @return \yii\db\ActiveQuery */ public function getTour() { return $this->hasOne(Tour::className(), ['id' => 'tour_id']); }
/** * @return \yii\db\ActiveQuery */ public function getTours() { return $this->hasMany(Tour::className(), ['concert_id' => 'id']); }
/** * relation to tour table */ public function getTours() { return $this->hasMany(Tour::className(), ['id_tourtype' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getIdTour() { return $this->hasOne(Tour::className(), ['id' => 'id_tour']); }