Symfony form category - subcategory
问题 I try to make a form with category and subcategory like the picture below : So, I made my form like that : ->add('souscategorie', EntityType::class, array( 'label' => false, 'class' => 'App:souscategorie', 'query_builder' => function(EntityRepository $er) { return $er->createQueryBuilder('souscategorie') ->leftJoin('souscategorie.categorie', 'categorie') ->addSelect('souscategorie') ->addSelect('categorie') ; }, 'expanded'=> true, 'multiple'=> true, 'choice_label' => function($sousCategorie){