src/Entity/BlogAttachement.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * BlogAttachement
  6.  *
  7.  * @ORM\Table(name="blog_attachement", indexes={@ORM\Index(name="fk_at_blog_idx", columns={"idattachement"}), @ORM\Index(name="fk_blog_at_idx", columns={"idblog"})})
  8.  * @ORM\Entity
  9.  */
  10. class BlogAttachement
  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 \DateTime|null
  22.      *
  23.      * @ORM\Column(name="date", type="datetime", nullable=true)
  24.      */
  25.     private $date;
  26.     /**
  27.      * @var \Blog
  28.      *
  29.      * @ORM\ManyToOne(targetEntity="Blog")
  30.      * @ORM\JoinColumns({
  31.      *   @ORM\JoinColumn(name="idblog", referencedColumnName="id")
  32.      * })
  33.      */
  34.     private $idblog;
  35.     /**
  36.      * @var \Attachment
  37.      *
  38.      * @ORM\ManyToOne(targetEntity="Attachment")
  39.      * @ORM\JoinColumns({
  40.      *   @ORM\JoinColumn(name="idattachement", referencedColumnName="id")
  41.      * })
  42.      */
  43.     private $idattachement;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getDate(): ?\DateTimeInterface
  49.     {
  50.         return $this->date;
  51.     }
  52.     public function setDate(?\DateTimeInterface $date): self
  53.     {
  54.         $this->date $date;
  55.         return $this;
  56.     }
  57.     public function getIdblog(): ?Blog
  58.     {
  59.         return $this->idblog;
  60.     }
  61.     public function setIdblog(?Blog $idblog): self
  62.     {
  63.         $this->idblog $idblog;
  64.         return $this;
  65.     }
  66.     public function getIdattachement(): ?Attachment
  67.     {
  68.         return $this->idattachement;
  69.     }
  70.     public function setIdattachement(?Attachment $idattachement): self
  71.     {
  72.         $this->idattachement $idattachement;
  73.         return $this;
  74.     }
  75. }