|
|
@ -33,12 +33,13 @@ class SocialController extends BaseController
|
|
|
|
$notificationEntity = $map->notificationSqlToEntity($listSearch);
|
|
|
|
$notificationEntity = $map->notificationSqlToEntity($listSearch);
|
|
|
|
|
|
|
|
|
|
|
|
$listUsers = [];
|
|
|
|
$listUsers = [];
|
|
|
|
|
|
|
|
//log::dd($notificationEntity);
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($notificationEntity as $entity) {
|
|
|
|
foreach ($notificationEntity as $entity) {
|
|
|
|
$notification = $map->notificationEntityToModel($entity);
|
|
|
|
$notification = $map->notificationEntityToModel($entity);
|
|
|
|
$listUsers[] = ['idnotif' => $notification->getId(), 'message' => $notification->getMessage(),
|
|
|
|
$listUsers[] = ['idnotif' => $notification->getId(), 'message' => $notification->getMessage(),
|
|
|
|
'date' => $notification->getDate()->format("D j F Y"),'statut' => $notification->getStatut(), 'urgence' => $notification->getUrgence(),
|
|
|
|
'date' => $notification->getDate()->format("D j F Y"),'statut' => $notification->getStatut(), 'urgence' => $notification->getUrgence(),
|
|
|
|
'idathlete' => $notification->getToUserId()];
|
|
|
|
'athleteId' => $notification->getToUserId()];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$response = $this->render('./page/notification.html.twig',[
|
|
|
|
$response = $this->render('./page/notification.html.twig',[
|
|
|
|