fix deprecations: use fcqn instead of 'choice'

This commit is contained in:
nobohan 2018-04-04 16:38:30 +02:00
parent def1b1c01f
commit 9951a5d765

View File

@ -26,6 +26,7 @@ use Symfony\Component\Form\FormEvents;
use Chill\MainBundle\Templating\TranslatableStringHelper;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
/**
* This type create a Choice field with custom fields as choices.
@ -111,7 +112,7 @@ class LinkedCustomFieldsType extends AbstractType
'choice_list' => new SimpleChoiceList($choices),
));
$event->getForm()->getParent()->add($this->choiceName, 'choice',
$event->getForm()->getParent()->add($this->choiceName, ChoiceType::class,
$options);
}