mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 21:13:57 +00:00
fix deprecations: use choices_as_values=true and flip content of the choice options
This commit is contained in:
@@ -47,7 +47,8 @@ class CustomFieldsGroupType extends AbstractType
|
||||
$builder
|
||||
->add('name', 'translatable_string')
|
||||
->add('entity', ChoiceType::class, array(
|
||||
'choices' => $entities
|
||||
'choices' => array_combine(array_values($entities),array_keys($entities)),
|
||||
'choices_as_values' => true
|
||||
))
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user