From db95e935d91e7bc195a973ec91d9865f2089dfa5 Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 8 Mar 2022 11:37:08 +0100 Subject: [PATCH] order accompanying period by opening date in search person --- src/Bundle/ChillPersonBundle/Entity/Person.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index fab4b2845..7297754bd 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -109,6 +109,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI * @ORM\OneToMany(targetEntity=AccompanyingPeriodParticipation::class, * mappedBy="person", * cascade={"persist", "remove", "merge", "detach"}) + * @ORM\OrderBy({"startDate" = "DESC"}) */ private $accompanyingPeriodParticipations;