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