mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix deprecations: use fqcn for collectionType in getParent()
This commit is contained in:
parent
4c4f4b5ca7
commit
44596bf58d
@ -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é <julien.fastre@champs-libres.coop>
|
||||
*
|
||||
*
|
||||
*/
|
||||
class ChoicesType extends AbstractType
|
||||
{
|
||||
{
|
||||
public function getName()
|
||||
{
|
||||
return 'cf_choices';
|
||||
}
|
||||
|
||||
|
||||
public function getParent()
|
||||
{
|
||||
return 'collection';
|
||||
return CollectionType::class;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user