fix: filter out deleted job profiles
This commit is contained in:
@@ -43,6 +43,10 @@ class AssignmentType extends AbstractType
|
|||||||
'class' => JobProfile::class,
|
'class' => JobProfile::class,
|
||||||
'choice_label' => 'name',
|
'choice_label' => 'name',
|
||||||
'placeholder' => 'Bitte auswählen',
|
'placeholder' => 'Bitte auswählen',
|
||||||
|
'query_builder' => function (EntityRepository $repository) {
|
||||||
|
return $repository->createQueryBuilder('job_profile')
|
||||||
|
->where('job_profile.deletedAt IS NULL');
|
||||||
|
}
|
||||||
])
|
])
|
||||||
->add('dateFrom', DatepickerType::class, [
|
->add('dateFrom', DatepickerType::class, [
|
||||||
'label' => 'abweichender Einsatztermin von',
|
'label' => 'abweichender Einsatztermin von',
|
||||||
|
|||||||
Reference in New Issue
Block a user