src/Entity/BFRouting.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\BFRoutingRepository")
  6.  */
  7. class BFRouting
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\OneToOne(targetEntity="App\Entity\BFFestival", inversedBy="route", cascade={"persist"})
  17.      */
  18.     private $festival;
  19.     /**
  20.      * @ORM\OneToOne(targetEntity="App\Entity\BFEdition", inversedBy="route", cascade={"persist"})
  21.      */
  22.     private $edition;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, unique=true, options={"collation":"latin1_bin"})
  25.      */
  26.     private $route;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getFestival(): ?BFFestival
  32.     {
  33.         return $this->festival;
  34.     }
  35.     public function setFestival(?BFFestival $festival): self
  36.     {
  37.         $this->festival $festival;
  38.         return $this;
  39.     }
  40.     public function getEdition(): ?BFEdition
  41.     {
  42.         return $this->edition;
  43.     }
  44.     public function setEdition(?BFEdition $edition): self
  45.     {
  46.         $this->edition $edition;
  47.         return $this;
  48.     }
  49.     public function getRoute(): ?string
  50.     {
  51.         return $this->route;
  52.     }
  53.     public function setRoute(string $route): self
  54.     {
  55.         $this->route $route;
  56.         return $this;
  57.     }
  58. }