fix deprecations: getName -> getBlockPrefix + use fqcn for Select2maritalStatusType

This commit is contained in:
nobohan 2018-04-04 17:59:18 +02:00
parent cf6b36c8f8
commit 9694445ba4
2 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,7 @@ use Chill\PersonBundle\Form\Type\GenderType;
use Chill\MainBundle\Form\Type\Select2CountryType; use Chill\MainBundle\Form\Type\Select2CountryType;
use Chill\MainBundle\Form\Type\Select2LanguageType; use Chill\MainBundle\Form\Type\Select2LanguageType;
use Chill\CustomFieldsBundle\Form\Type\CustomFieldType; use Chill\CustomFieldsBundle\Form\Type\CustomFieldType;
use Chill\PersonBundle\Form\Type\Select2MaritalStatusType;
class PersonType extends AbstractType class PersonType extends AbstractType
{ {
@ -102,7 +103,7 @@ class PersonType extends AbstractType
} }
if ($this->config['marital_status'] === 'visible'){ if ($this->config['marital_status'] === 'visible'){
$builder->add('maritalStatus', 'select2_chill_marital_status', array( $builder->add('maritalStatus', Select2MaritalStatusType::class, array(
'required' => false 'required' => false
)); ));
} }

View File

@ -47,7 +47,7 @@ class Select2MaritalStatusType extends AbstractType
$this->em = $em; $this->em = $em;
} }
public function getName() { public function getBlockPrefix() {
return 'select2_chill_marital_status'; return 'select2_chill_marital_status';
} }