mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
display only last three actions in parcours resume
This commit is contained in:
parent
0efd3d2af3
commit
0b4d79fd5e
@ -221,9 +221,11 @@ class AccompanyingCourseController extends Controller
|
|||||||
|
|
||||||
$activities = $this->getDoctrine()->getManager()->getRepository(Activity::class)->findBy(
|
$activities = $this->getDoctrine()->getManager()->getRepository(Activity::class)->findBy(
|
||||||
['accompanyingPeriod' => $accompanyingCourse],
|
['accompanyingPeriod' => $accompanyingCourse],
|
||||||
['date' => 'DESC'],
|
['date' => 'DESC', 'id' => 'DESC'],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$activities = array_slice($activities, 0, 3);
|
||||||
|
|
||||||
$works = $this->workRepository->findByAccompanyingPeriod(
|
$works = $this->workRepository->findByAccompanyingPeriod(
|
||||||
$accompanyingCourse,
|
$accompanyingCourse,
|
||||||
['startDate' => 'DESC', 'endDate' => 'DESC'],
|
['startDate' => 'DESC', 'endDate' => 'DESC'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user