Merge branch 'issue324_civility_order' into 'master'

main: add order field to civility

See merge request Chill-Projet/chill-bundles!265
This commit is contained in:
2021-12-13 14:00:55 +00:00
4 changed files with 57 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,