mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix deprecations: use fqcn for trasnlatable_string
This commit is contained in:
parent
7eeaec7047
commit
7ed0e3fddd
@ -9,6 +9,7 @@ use Symfony\Component\Translation\TranslatorInterface;
|
||||
use Symfony\Component\Form\FormEvents;
|
||||
use Symfony\Component\Form\FormEvent;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Chill\MainBundle\Form\Type\TranslatableStringFormType;
|
||||
|
||||
|
||||
class CustomFieldsGroupType extends AbstractType
|
||||
@ -45,7 +46,7 @@ class CustomFieldsGroupType extends AbstractType
|
||||
}
|
||||
|
||||
$builder
|
||||
->add('name', 'translatable_string')
|
||||
->add('name', TranslatableStringFormType::class)
|
||||
->add('entity', ChoiceType::class, array(
|
||||
'choices' => array_combine(array_values($entities),array_keys($entities)),
|
||||
'choices_as_values' => true
|
||||
|
Loading…
x
Reference in New Issue
Block a user