fix: filter out deleted job profiles

This commit is contained in:
Björn Fromme
2024-01-28 14:12:04 +01:00
parent 79a4a8fef5
commit 3c0cc1c776
+4
View File
@@ -43,6 +43,10 @@ class AssignmentType extends AbstractType
'class' => JobProfile::class,
'choice_label' => 'name',
'placeholder' => 'Bitte auswählen',
'query_builder' => function (EntityRepository $repository) {
return $repository->createQueryBuilder('job_profile')
->where('job_profile.deletedAt IS NULL');
}
])
->add('dateFrom', DatepickerType::class, [
'label' => 'abweichender Einsatztermin von',