Update Application20.php

findByUserId does not exist anymore change call to findByParticipant
This commit is contained in:
ksteinb
2020-11-17 12:29:25 +01:00
committed by GitHub
parent 7692f51327
commit 703abc09b7

View File

@@ -133,7 +133,7 @@ class Application20 extends App implements IBootstrap {
}
// delete existing user assignments
$assignmentMapper = $container->query(AssignmentMapper::class);
$assignments = $assignmentMapper->findByUserId($user->getUID());
$assignments = $assignmentMapper->findByParticipant($user->getUID());
foreach ($assignments as $assignment) {
$assignmentMapper->delete($assignment);
}