mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 04:53:49 +00:00
fix deprecations: use fqcn instead of 'choices'
This commit is contained in:
@@ -27,6 +27,7 @@ use Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice\Option;
|
||||
use Chill\CustomFieldsBundle\Form\DataTransformer\CustomFieldDataTransformer;
|
||||
use Symfony\Bridge\Twig\TwigEngine;
|
||||
use Chill\MainBundle\Form\Type\Select2ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -109,7 +110,7 @@ class CustomFieldLongChoice extends AbstractCustomField
|
||||
$choices[$key] = $key;
|
||||
}
|
||||
|
||||
return $builder->add(self::KEY, 'choice', array(
|
||||
return $builder->add(self::KEY, ChoiceType::class, array(
|
||||
'choices' => $choices,
|
||||
'label' => 'Options key'
|
||||
));
|
||||
|
Reference in New Issue
Block a user