Add second quiz

This commit is contained in:
2025-03-04 20:39:17 +01:00
parent c155fd6754
commit 26b99a8353
2 changed files with 154 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ class Season
private bool $preregisterCandidates;
/** @var Collection<int, Quiz> */
#[ORM\OneToMany(targetEntity: Quiz::class, mappedBy: 'season', orphanRemoval: true)]
#[ORM\OneToMany(targetEntity: Quiz::class, mappedBy: 'season', cascade: ['persist'], orphanRemoval: true)]
private Collection $quizzes;
/** @var Collection<int, Candidate> */