improve docgen wip

This commit is contained in:
Julien Fastré 2021-12-10 01:10:55 +01:00 committed by Julie Lenaerts
parent a25123ee38
commit 5b531a0529
3 changed files with 11 additions and 2 deletions

View File

@ -46,7 +46,7 @@ class RelatorioDriver implements DriverInterface
'template' => new DataPart($template, $templateName ?? uniqid('template_'), $resourceType),
];
$form = new FormDataPart($formFields);
dump(json_encode($data));
try {
$response = $this->relatorioClient->request('POST', $this->url, [
'headers' => $form->getPreparedHeaders()->toArray(),

View File

@ -35,6 +35,15 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
private UserRender $userRender;
const NULL_USER = [
'type' => 'user',
'id' => '',
'username' => '',
'text' => '',
'label' => '',
'email' => '',
];
public function __construct(UserRender $userRender)
{
$this->userRender = $userRender;

View File

@ -194,7 +194,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
*
* @ORM\ManyToOne(targetEntity="Chill\ThirdPartyBundle\Entity\ThirdParty", inversedBy="children")
* @ORM\JoinColumn(name="parent_id", referencedColumnName="id")
* @Groups({"read"})
* @Groups({"read", "docgen:read"})
*/
private ?ThirdParty $parent = null;