diff --git a/src/Admin/AdherentAdmin.php b/src/Admin/AdherentAdmin.php index ff6d7a2..0f66ecb 100644 --- a/src/Admin/AdherentAdmin.php +++ b/src/Admin/AdherentAdmin.php @@ -191,7 +191,7 @@ class AdherentAdmin extends AbstractAdmin ->add('profilDeCotisation', ChoiceType::class, [ 'required' => true, '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, 'placeholder' => 'Choisir un profil', 'choice_label' => function ($choice, $key, $value) {