diff --git a/src/Entity/Film.php b/src/Entity/Film.php index 073dfac..df38fbb 100644 --- a/src/Entity/Film.php +++ b/src/Entity/Film.php @@ -31,7 +31,7 @@ class Film { /** * @var string * - * @ORM\Column(name="product_line", type="string", nullable=false) + * @ORM\Column(name="product_line", type="string", nullable=true) */ private $productLine; @@ -42,6 +42,13 @@ class Film { */ private $filmName; + /** + * @var string + * + * @ORM\Column(name="film_alias", type="string", nullable=true) + */ + private $filmAlias; + /** * @var int * @@ -136,7 +143,7 @@ class Film { * @param string $productLine * @return self */ - public function setProductLine(string $productLine): self + public function setProductLine(?string $productLine): self { $this->productLine = $productLine; return $this; @@ -160,6 +167,24 @@ class Film { return $this; } + /** + * @return string + */ + public function getFilmAlias(): ?string + { + return $this->filmAlias; + } + + /** + * @param string $filmAlias + * @return self + */ + public function setFilmAlias(string $filmAlias): self + { + $this->filmAlias = $filmAlias; + return $this; + } + /** * @return int */ diff --git a/templates/film/index.html.twig b/templates/film/index.html.twig index b0636ae..1cebc5a 100644 --- a/templates/film/index.html.twig +++ b/templates/film/index.html.twig @@ -19,6 +19,7 @@