feat: add Award entity and repository

This commit is contained in:
thibaud-leclere
2026-04-01 14:23:23 +02:00
parent acc266739d
commit 859a5a1067
3 changed files with 124 additions and 0 deletions

View File

@@ -30,9 +30,14 @@ class Actor
#[ORM\Column(nullable: true)]
private ?int $tmdbId = null;
/** @var Collection<int, Award> */
#[ORM\OneToMany(targetEntity: Award::class, mappedBy: 'actor')]
private Collection $awards;
public function __construct()
{
$this->movieRoles = new ArrayCollection();
$this->awards = new ArrayCollection();
}
public function getId(): ?int
@@ -105,4 +110,10 @@ class Actor
return $this;
}
/** @return Collection<int, Award> */
public function getAwards(): Collection
{
return $this->awards;
}
}