fix deprecations: use fqcn + change 'property' in 'choice_label'

This commit is contained in:
nobohan
2018-04-05 15:04:47 +02:00
parent 478e1c505d
commit 5aa87ffdb4
2 changed files with 3 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class TranslatableActivityReasonCategory extends AbstractType
$resolver->setDefaults(
array(
'class' => 'ChillActivityBundle:ActivityReasonCategory',
'property' => 'name['.$locale.']',
'choice_label' => 'name['.$locale.']',
'query_builder' => function (EntityRepository $er) {
return $er->createQueryBuilder('c')
->where('c.active = true');