src/Entity/OrlProspectOnOrlOffice.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OrlProspectOnOrlOfficeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=OrlProspectOnOrlOfficeRepository::class)
  8.  */
  9. class OrlProspectOnOrlOffice
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity="App\Entity\OrlOffice", inversedBy="orlProspectsOnOrlOffice", fetch="EAGER")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $orlOffice;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="App\Entity\OrlProspect", inversedBy="orlProspectsOnOrlOffice")
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $orlProspect;
  27.     /**
  28.      * @ORM\Column(type="datetime")
  29.      * @Gedmo\Timestampable(on="create")
  30.      */
  31.     private $created;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getCreated(): ?\DateTimeInterface
  37.     {
  38.         return $this->created;
  39.     }
  40.     public function setCreated(\DateTimeInterface $created): self
  41.     {
  42.         $this->created $created;
  43.         return $this;
  44.     }
  45.     public function getOrlOffice(): ?OrlOffice
  46.     {
  47.         return $this->orlOffice;
  48.     }
  49.     public function setOrlOffice(?OrlOffice $orlOffice): self
  50.     {
  51.         $this->orlOffice $orlOffice;
  52.         return $this;
  53.     }
  54.     public function getOrlProspect(): ?OrlProspect
  55.     {
  56.         return $this->orlProspect;
  57.     }
  58.     public function setOrlProspect(?OrlProspect $orlProspect): self
  59.     {
  60.         $this->orlProspect $orlProspect;
  61.         return $this;
  62.     }
  63. }