save movies release date in BDD, remove unused badge, add help to export movie from letterboxd

This commit is contained in:
thibaud-leclere
2026-03-31 22:18:46 +02:00
parent c5d359bb0c
commit 116812b3f8
8 changed files with 158 additions and 27 deletions

View File

@@ -24,6 +24,9 @@ class Movie
#[ORM\Column(length: 255)]
private ?string $title = null;
#[ORM\Column(nullable: true)]
private ?int $year = null;
/**
* @var Collection<int, MovieRole>
*/
@@ -76,6 +79,18 @@ class Movie
return $this;
}
public function getYear(): ?int
{
return $this->year;
}
public function setYear(?int $year): static
{
$this->year = $year;
return $this;
}
/**
* @return Collection<int, MovieRole>
*/

View File

@@ -38,7 +38,8 @@ readonly class FilmImporter
$movie = new Movie()
->setLtbxdRef($ltbxdMovie->getLtbxdRef())
->setTitle($ltbxdMovie->getName())
->setTmdbId($tmdbMovie->getId());
->setTmdbId($tmdbMovie->getId())
->setYear($ltbxdMovie->getYear());
$this->em->persist($movie);