mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-12 04:48:22 +02:00
feat: add candidate rename and delete (#194)
Adds per-candidate rename and delete actions to the candidates tab, guarded by confirmation modals since deletion also discards the candidate's given answers. Closes #18
This commit is contained in:
@@ -19,6 +19,12 @@ class CandidateRepository extends ServiceEntityRepository
|
||||
parent::__construct($registry, Candidate::class);
|
||||
}
|
||||
|
||||
public function deleteCandidate(Candidate $candidate): void
|
||||
{
|
||||
$this->getEntityManager()->remove($candidate);
|
||||
$this->getEntityManager()->flush();
|
||||
}
|
||||
|
||||
public function getCandidateByHash(Season $season, string $hash): ?Candidate
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user