Commit 4b57510c authored by Julien Minet's avatar Julien Minet

fix deprecations: getName -> getBlockPrefix in forms

parent 73f5295f
......@@ -84,7 +84,7 @@ class AccompanyingPeriodType extends AbstractType
/**
* @return string
*/
public function getName()
public function getBlockPrefix()
{
return 'chill_personbundle_accompanyingperiod';
}
......
......@@ -36,7 +36,7 @@ use Chill\PersonBundle\Form\CreationPersonType;
class CreationPersonType extends AbstractType
{
const NAME = CreationPersonType::class;
const NAME = 'chill_personbundle_person_creation';
const FORM_NOT_REVIEWED = 'not_reviewed';
const FORM_REVIEWED = 'reviewed' ;
......@@ -128,7 +128,7 @@ class CreationPersonType extends AbstractType
/**
* @return string
*/
public function getName()
public function getBlockPrefix()
{
return self::NAME;
}
......
<?php
public function getBlockPrefix<?php
namespace Chill\PersonBundle\Form\Type;
......@@ -25,7 +25,7 @@ class ClosingMotiveType extends AbstractType
}
}
public function getName()
public function getBlockPrefix()
{
return 'closing_motive';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment