src/Entity/Attachment.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Attachment
  6.  *
  7.  * @ORM\Table(name="attachment", indexes={@ORM\Index(name="fk_attchposition_idx", columns={"idposition"}), @ORM\Index(name="fk_userphoto_idx", columns={"iduser"}), @ORM\Index(name="fk_attchref_idx", columns={"idref"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\AttachmentRepository")
  9.  */
  10. class Attachment
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="path", type="string", length=255, nullable=true)
  24.      */
  25.     private $path;
  26.     /**
  27.      * @var \DateTime|null
  28.      *
  29.      * @ORM\Column(name="date", type="date", nullable=true)
  30.      */
  31.     private $date;
  32.     /**
  33.      * @var int|null
  34.      *
  35.      * @ORM\Column(name="idblog", type="integer", nullable=true)
  36.      */
  37.     private $idblog;
  38.     /**
  39.      * @var \Position
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="Position")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="idposition", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $idposition;
  47.     /**
  48.      * @var \Ref
  49.      *
  50.      * @ORM\ManyToOne(targetEntity="Ref")
  51.      * @ORM\JoinColumns({
  52.      *   @ORM\JoinColumn(name="idref", referencedColumnName="id")
  53.      * })
  54.      */
  55.     private $idref;
  56.     /**
  57.      * @var \User
  58.      *
  59.      * @ORM\ManyToOne(targetEntity="User")
  60.      * @ORM\JoinColumns({
  61.      *   @ORM\JoinColumn(name="iduser", referencedColumnName="id")
  62.      * })
  63.      */
  64.     private $iduser;
  65.     /**
  66.      * @ORM\Column(type="string", length=255, nullable=true)
  67.      */
  68.     private $descreption;
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function getPath(): ?string
  74.     {
  75.         return $this->path;
  76.     }
  77.     public function setPath(?string $path): self
  78.     {
  79.         $this->path $path;
  80.         return $this;
  81.     }
  82.     public function getDate(): ?\DateTimeInterface
  83.     {
  84.         return $this->date;
  85.     }
  86.     public function setDate(?\DateTimeInterface $date): self
  87.     {
  88.         $this->date $date;
  89.         return $this;
  90.     }
  91.     public function getIdblog(): ?int
  92.     {
  93.         return $this->idblog;
  94.     }
  95.     public function setIdblog(?int $idblog): self
  96.     {
  97.         $this->idblog $idblog;
  98.         return $this;
  99.     }
  100.     public function getIdposition(): ?Position
  101.     {
  102.         return $this->idposition;
  103.     }
  104.     public function setIdposition(?Position $idposition): self
  105.     {
  106.         $this->idposition $idposition;
  107.         return $this;
  108.     }
  109.     public function getIdref(): ?Ref
  110.     {
  111.         return $this->idref;
  112.     }
  113.     public function setIdref(?Ref $idref): self
  114.     {
  115.         $this->idref $idref;
  116.         return $this;
  117.     }
  118.     public function getIduser(): ?User
  119.     {
  120.         return $this->iduser;
  121.     }
  122.     public function setIduser(?User $iduser): self
  123.     {
  124.         $this->iduser $iduser;
  125.         return $this;
  126.     }
  127.     public function getDescreption(): ?string
  128.     {
  129.         return $this->descreption;
  130.     }
  131.     public function setDescreption(?string $descreption): self
  132.     {
  133.         $this->descreption $descreption;
  134.         return $this;
  135.     }
  136. }