Commit 84055e00 by Damien Moulard

adherents admin: sort profiles de cotisation by montant asc

parent 2a3af91b
...@@ -191,7 +191,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -191,7 +191,7 @@ class AdherentAdmin extends AbstractAdmin
->add('profilDeCotisation', ChoiceType::class, [ ->add('profilDeCotisation', ChoiceType::class, [
'required' => true, 'required' => true,
'label' => 'Choix du profil de cotisation :', 'label' => 'Choix du profil de cotisation :',
'choices' => $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(ProfilDeCotisation::class)->findAll(), 'choices' => $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(ProfilDeCotisation::class)->findBy([], ['montant' => 'ASC']),
'empty_data' => null, 'empty_data' => null,
'placeholder' => 'Choisir un profil', 'placeholder' => 'Choisir un profil',
'choice_label' => function ($choice, $key, $value) { 'choice_label' => function ($choice, $key, $value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment