From 7ed0e3fddd0e7e9c20777b04bbd4bf94722a4537 Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 5 Apr 2018 13:35:30 +0200 Subject: [PATCH] fix deprecations: use fqcn for trasnlatable_string --- Form/CustomFieldsGroupType.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Form/CustomFieldsGroupType.php b/Form/CustomFieldsGroupType.php index 3be8b538d..1c2bb436a 100644 --- a/Form/CustomFieldsGroupType.php +++ b/Form/CustomFieldsGroupType.php @@ -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