<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\BFRoutingRepository")
*/
class BFRouting
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity="App\Entity\BFFestival", inversedBy="route", cascade={"persist"})
*/
private $festival;
/**
* @ORM\OneToOne(targetEntity="App\Entity\BFEdition", inversedBy="route", cascade={"persist"})
*/
private $edition;
/**
* @ORM\Column(type="string", length=255, unique=true, options={"collation":"latin1_bin"})
*/
private $route;
public function getId(): ?int
{
return $this->id;
}
public function getFestival(): ?BFFestival
{
return $this->festival;
}
public function setFestival(?BFFestival $festival): self
{
$this->festival = $festival;
return $this;
}
public function getEdition(): ?BFEdition
{
return $this->edition;
}
public function setEdition(?BFEdition $edition): self
{
$this->edition = $edition;
return $this;
}
public function getRoute(): ?string
{
return $this->route;
}
public function setRoute(string $route): self
{
$this->route = $route;
return $this;
}
}