src/Entity/Otpusk/HotelFile.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Otpusk;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Hotelfiles
  6.  *
  7.  * @ORM\Table(name="hotelFiles", indexes={@ORM\Index(name="hotelId", columns={"hotelId"})})
  8.  * @ORM\Entity
  9.  */
  10. class HotelFile
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="smallint", nullable=false, options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Column(name="hotelId", type="integer", nullable=false, options={"unsigned"=true})
  24.      */
  25.     private $hotelid;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="file", type="text", length=65535, nullable=false)
  30.      */
  31.     private $file;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="type", type="string", length=15, nullable=false)
  36.      */
  37.     private $type;
  38.     /**
  39.      * @var int
  40.      *
  41.      * @ORM\Column(name="size", type="bigint", nullable=false, options={"unsigned"=true})
  42.      */
  43.     private $size;
  44.     /**
  45.      * @var string|null
  46.      *
  47.      * @ORM\Column(name="description", type="string", length=50, nullable=true)
  48.      */
  49.     private $description;
  50. }