From 6c1e4cb38b96c5eea8bc7594ec78983ce44be4c1 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Wed, 1 Apr 2026 14:23:56 +0200 Subject: [PATCH] feat: add awardsImported flag and awards relation to Actor Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Entity/Actor.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Entity/Actor.php b/src/Entity/Actor.php index fc24f46..557a39c 100644 --- a/src/Entity/Actor.php +++ b/src/Entity/Actor.php @@ -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 */ #[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 */ public function getAwards(): Collection {