sync actor roles

This commit is contained in:
thibaud-leclere
2026-01-15 21:51:35 +01:00
parent cb57824861
commit 5e715a40c6
5 changed files with 190 additions and 63 deletions

View File

@@ -27,6 +27,9 @@ class Actor
#[ORM\OneToMany(targetEntity: MovieRole::class, mappedBy: 'actor')]
private Collection $movieRoles;
#[ORM\Column(nullable: true)]
private ?int $tmdbId = null;
public function __construct()
{
$this->movieRoles = new ArrayCollection();
@@ -90,4 +93,16 @@ class Actor
return $this;
}
public function getTmdbId(): ?int
{
return $this->tmdbId;
}
public function setTmdbId(?int $tmdbId): static
{
$this->tmdbId = $tmdbId;
return $this;
}
}