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 @@ Brand Product Line Film Name + Film Alias Film Speed Film Format Film Base @@ -42,6 +43,7 @@ {{ film.brand }} {{ film.productLine }} {{ film.filmName }} + {{ film.filmAlias }} {{ film.filmSpeedAsa }}/{{ film.filmSpeedDin }}° {{ film.filmFormat }} {{ film.filmBase }} diff --git a/templates/film/show.html.twig b/templates/film/show.html.twig index 2206001..04696a4 100644 --- a/templates/film/show.html.twig +++ b/templates/film/show.html.twig @@ -41,6 +41,10 @@ Film Name {{ film.filmName }} + + Film Alias + {{ film.filmAlias }} + Film Speed {{ film.filmSpeedAsa }}/{{ film.filmSpeedDin }}° diff --git a/templates/header.html.twig b/templates/header.html.twig index add3ddf..19ab0f3 100644 --- a/templates/header.html.twig +++ b/templates/header.html.twig @@ -22,6 +22,8 @@
  • Lenses
  • + +