Adding AccompanyingPeriodWorkEvaluation in the choices of DocGenerator config form (admin)

This commit is contained in:
Marc Ducobu 2021-11-19 11:08:28 +01:00 committed by marcu
parent a3333c3302
commit 1bf595334e

View File

@ -18,6 +18,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\OptionsResolver\OptionsResolver;
use Chill\DocStoreBundle\Form\StoredObjectType; use Chill\DocStoreBundle\Form\StoredObjectType;
use Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWorkEvaluation;
class DocGeneratorTemplateType extends AbstractType class DocGeneratorTemplateType extends AbstractType
{ {
@ -32,7 +33,8 @@ class DocGeneratorTemplateType extends AbstractType
'multiple' => true, 'multiple' => true,
'choices' => [ 'choices' => [
'AccompanyingPeriod' => 'Chill\PersonBundle\Entity\AccompanyingPeriod', 'AccompanyingPeriod' => 'Chill\PersonBundle\Entity\AccompanyingPeriod',
'SocialWork\SocialAction' => 'Chill\PersonBundle\Entity\SocialWork\SocialAction' 'SocialWork\SocialAction' => 'Chill\PersonBundle\Entity\SocialWork\SocialAction',
'AccompanyingPeriod\AccompanyingPeriodWorkEvaluation' => AccompanyingPeriodWorkEvaluation::class
]]) ]])
->add('description') ->add('description')
->add('file', StoredObjectType::class, [ ->add('file', StoredObjectType::class, [