From 9694445ba4bc446eff8840b1de38300458de2b63 Mon Sep 17 00:00:00 2001 From: nobohan Date: Wed, 4 Apr 2018 17:59:18 +0200 Subject: [PATCH] fix deprecations: getName -> getBlockPrefix + use fqcn for Select2maritalStatusType --- Form/PersonType.php | 3 ++- Form/Type/Select2MaritalStatusType.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Form/PersonType.php b/Form/PersonType.php index 1ab9cb8dd..a2ba67c42 100644 --- a/Form/PersonType.php +++ b/Form/PersonType.php @@ -32,6 +32,7 @@ use Chill\PersonBundle\Form\Type\GenderType; use Chill\MainBundle\Form\Type\Select2CountryType; use Chill\MainBundle\Form\Type\Select2LanguageType; use Chill\CustomFieldsBundle\Form\Type\CustomFieldType; +use Chill\PersonBundle\Form\Type\Select2MaritalStatusType; class PersonType extends AbstractType { @@ -102,7 +103,7 @@ class PersonType extends AbstractType } if ($this->config['marital_status'] === 'visible'){ - $builder->add('maritalStatus', 'select2_chill_marital_status', array( + $builder->add('maritalStatus', Select2MaritalStatusType::class, array( 'required' => false )); } diff --git a/Form/Type/Select2MaritalStatusType.php b/Form/Type/Select2MaritalStatusType.php index 65e2473d4..e248a534e 100644 --- a/Form/Type/Select2MaritalStatusType.php +++ b/Form/Type/Select2MaritalStatusType.php @@ -47,7 +47,7 @@ class Select2MaritalStatusType extends AbstractType $this->em = $em; } - public function getName() { + public function getBlockPrefix() { return 'select2_chill_marital_status'; }