diff --git a/Form/Type/ChoicesType.php b/Form/Type/ChoicesType.php index 581b2620b..30c44527c 100644 --- a/Form/Type/ChoicesType.php +++ b/Form/Type/ChoicesType.php @@ -3,22 +3,22 @@ namespace Chill\CustomFieldsBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; - +use Symfony\Component\Form\Extension\Core\Type\CollectionType; /** * * @author Julien Fastré - * + * */ class ChoicesType extends AbstractType -{ +{ public function getName() { return 'cf_choices'; } - + public function getParent() { - return 'collection'; + return CollectionType::class; } -} \ No newline at end of file +}