Add db, sync movies command

This commit is contained in:
thibaud-leclere
2026-01-14 00:54:49 +01:00
parent e5d5fe4343
commit 5c35aff23b
11 changed files with 264 additions and 32 deletions

65
src/Entity/Movie.php Normal file
View File

@@ -0,0 +1,65 @@
<?php
namespace App\Entity;
use App\Repository\MovieRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MovieRepository::class)]
class Movie
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $tmdbId = null;
#[ORM\Column(length: 255)]
private ?string $ltbxdRef = null;
#[ORM\Column(length: 255)]
private ?string $title = null;
public function getId(): ?int
{
return $this->id;
}
public function getTmdbId(): ?int
{
return $this->tmdbId;
}
public function setTmdbId(int $tmdbId): static
{
$this->tmdbId = $tmdbId;
return $this;
}
public function getLtbxdRef(): ?string
{
return $this->ltbxdRef;
}
public function setLtbxdRef(string $ltbxdRef): static
{
$this->ltbxdRef = $ltbxdRef;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): static
{
$this->title = $title;
return $this;
}
}