code fix for PersonContext

This commit is contained in:
nobohan 2022-03-03 10:17:16 +01:00
parent d6d7edf25d
commit 4406016f82
2 changed files with 2 additions and 3 deletions

View File

@ -222,7 +222,6 @@ final class DocGeneratorTemplateController extends AbstractController
);
}
if ($isTest) {
$builder->add('test_file', FileType::class, [
'label' => 'Template file',

View File

@ -114,7 +114,7 @@ class PersonContext implements DocGeneratorContextWithAdminFormInterface
$data = array_merge($data, $this->baseContextData->getData());
$data['person'] = $this->normalizer->normalize($entity, 'docgen', [
'docgen:expects' => Person::class,
'groups' => ['docgen:read', 'docgen:person:with-household', 'docgen:person:with-relations']
'groups' => ['docgen:read', 'docgen:person:with-household', 'docgen:person:with-relations'],
]);
return $data;
@ -176,4 +176,4 @@ class PersonContext implements DocGeneratorContextWithAdminFormInterface
$this->em->persist($doc);
}
}
}