rdv: add entity to serialize (WIP)

This commit is contained in:
nobohan
2021-07-19 11:07:29 +02:00
parent 516c286519
commit 206347de91
3 changed files with 14 additions and 12 deletions

View File

@@ -190,14 +190,15 @@ class CalendarController extends AbstractController
throw $this->createNotFoundException('Template not found');
}
// $activity_array = $this->serializer->normalize($entity, 'json', ['groups' => 'read']);
$entity_array = $this->serializer->normalize($entity, 'json', ['groups' => 'read']);
dump($entity_array);
return $this->render($view, [
'user' => $user,
'accompanyingCourse' => $accompanyingPeriod,
'entity' => $entity,
'form' => $form->createView(),
//'activity_json' => $calendar_array
'entity_json' => $entity_array
]);
}