sync actor roles
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user