mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
rdv: add entity to serialize (WIP)
This commit is contained in:
@@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user