mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix deprecations: getName -> getBlockPrefix + use fqcn for Select2maritalStatusType
This commit is contained in:
parent
cf6b36c8f8
commit
9694445ba4
@ -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
|
||||
));
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ class Select2MaritalStatusType extends AbstractType
|
||||
$this->em = $em;
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
public function getBlockPrefix() {
|
||||
return 'select2_chill_marital_status';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user