feat: refactor staffing status assignment and filtering
This commit is contained in:
@@ -26,6 +26,9 @@ class DeleteController extends AbstractController
|
||||
$this->entityManager->remove($application);
|
||||
$this->entityManager->flush();
|
||||
|
||||
$application->getAssignment()->updateStaffingStatus();
|
||||
$this->entityManager->flush();
|
||||
|
||||
$this->addFlash('success', 'Die Bewerbung wurde gelöscht');
|
||||
$this->logger->info('Delete application', [
|
||||
'destination' => (string) $application->getAssignment()->getDestination(),
|
||||
|
||||
@@ -39,6 +39,10 @@ class DisposeController extends AbstractController
|
||||
$this->entityManager->remove($application);
|
||||
$this->entityManager->flush();
|
||||
|
||||
// Update staffing status of related assignment
|
||||
$disposition->getAssignment()->updateStaffingStatus();
|
||||
$this->entityManager->flush();
|
||||
|
||||
$this->eventDispatcher->dispatch(new DispositionCreatedEvent($disposition), DispositionCreatedEvent::NAME);
|
||||
|
||||
$this->addFlash('success', 'Teamer:in wurde eingeteilt');
|
||||
|
||||
Reference in New Issue
Block a user