/** * @return \yii\db\ActiveQuery */ public function getHotel() { return $this->hasOne(Hotels::className(), ['Id' => 'hotelId']); }