mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 05:44:58 +00:00
fix deprecations: use fqcn + change 'property' in 'choice_label'
This commit is contained in:
@@ -7,6 +7,7 @@ use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
use Chill\MainBundle\Form\Type\TranslatableStringFormType;
|
||||
use Chill\ActivityBundle\Form\Type\TranslatableActivityReasonCategory;
|
||||
|
||||
class ActivityReasonType extends AbstractType
|
||||
{
|
||||
@@ -19,7 +20,7 @@ class ActivityReasonType extends AbstractType
|
||||
$builder
|
||||
->add('name', TranslatableStringFormType::class)
|
||||
->add('active', CheckboxType::class, array('required' => false))
|
||||
->add('category', 'translatable_activity_reason_category')
|
||||
->add('category', TranslatableActivityReasonCategory::class)
|
||||
;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user