feat: add awardsImported flag and awards relation to Actor

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
thibaud-leclere
2026-04-01 14:23:56 +02:00
parent 859a5a1067
commit 6c1e4cb38b

View File

@@ -30,6 +30,9 @@ class Actor
#[ORM\Column(nullable: true)] #[ORM\Column(nullable: true)]
private ?int $tmdbId = null; private ?int $tmdbId = null;
#[ORM\Column(options: ['default' => false])]
private bool $awardsImported = false;
/** @var Collection<int, Award> */ /** @var Collection<int, Award> */
#[ORM\OneToMany(targetEntity: Award::class, mappedBy: 'actor')] #[ORM\OneToMany(targetEntity: Award::class, mappedBy: 'actor')]
private Collection $awards; private Collection $awards;
@@ -111,6 +114,18 @@ class Actor
return $this; return $this;
} }
public function isAwardsImported(): bool
{
return $this->awardsImported;
}
public function setAwardsImported(bool $awardsImported): static
{
$this->awardsImported = $awardsImported;
return $this;
}
/** @return Collection<int, Award> */ /** @return Collection<int, Award> */
public function getAwards(): Collection public function getAwards(): Collection
{ {