fix deprecations: use fqcn for chill classes

This commit is contained in:
nobohan
2018-04-04 12:18:06 +02:00
parent 75b4ef5a7d
commit ba79200e55
2 changed files with 23 additions and 19 deletions

View File

@@ -26,6 +26,7 @@ use Chill\MainBundle\Form\Type\DataTransformer\ObjectToIdTransformer;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Doctrine\Common\Persistence\ObjectManager;
use Chill\MainBundle\Form\Type\Select2ChoiceType;
/**
* A type to select the marital status
@@ -45,13 +46,13 @@ class Select2MaritalStatusType extends AbstractType
$this->requestStack = $requestStack;
$this->em = $em;
}
public function getName() {
return 'select2_chill_marital_status';
}
public function getParent() {
return 'select2_choice';
return Select2ChoiceType::class;
}
public function buildForm(FormBuilderInterface $builder, array $options)