/** * @return \yii\db\ActiveQuery */ public function getHotelImages() { return $this->hasMany(HotelImages::className(), ['hotel_id' => 'id']); }