@@ -53,6 +53,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
5353 'required ' => false ,
5454 'multiple ' => true ,
5555 'choice_label ' => 'name ' ,
56+ 'choice_value ' => 'externalid ' ,
5657 'query_builder ' => fn (EntityRepository $ er ) => $ er
5758 ->createQueryBuilder ('c ' )
5859 ->where ('c.enabled = 1 ' )
@@ -64,6 +65,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
6465 'class ' => Problem::class,
6566 'required ' => false ,
6667 'choice_label ' => 'name ' ,
68+ 'choice_value ' => 'externalid ' ,
6769 'choices ' => [],
6870 ]);
6971 $ builder ->add ('languages ' , EntityType::class, [
@@ -72,6 +74,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
7274 'class ' => Language::class,
7375 'required ' => false ,
7476 'choice_label ' => 'name ' ,
77+ 'choice_value ' => 'externalid ' ,
7578 'query_builder ' => fn (EntityRepository $ er ) => $ er
7679 ->createQueryBuilder ('l ' )
7780 ->where ('l.allowSubmit = 1 ' )
@@ -83,6 +86,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
8386 'class ' => Team::class,
8487 'required ' => false ,
8588 'choice_label ' => 'name ' ,
89+ 'choice_value ' => 'externalid ' ,
8690 'choices ' => [],
8791 ]);
8892 $ builder ->add ('users ' , EntityType::class, [
@@ -91,6 +95,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
9195 'required ' => false ,
9296 'multiple ' => true ,
9397 'choice_label ' => 'name ' ,
98+ 'choice_value ' => 'externalid ' ,
9499 'query_builder ' => fn (EntityRepository $ er ) => $ er
95100 ->createQueryBuilder ('u ' )
96101 ->where ('u.enabled = 1 ' )
0 commit comments