main: add order field to civility

This commit is contained in:
nobohan
2021-12-13 12:35:17 +01:00
parent 1fff9ef535
commit b5178c3be3
3 changed files with 48 additions and 1 deletions

View File

@@ -197,7 +197,8 @@ class PersonType extends AbstractType
},
'query_builder' => static function (EntityRepository $er): QueryBuilder {
return $er->createQueryBuilder('c')
->where('c.active = true');
->where('c.active = true')
->orderBy('c.order');
},
'placeholder' => 'choose civility',
'required' => false,