diff --git a/CHANGELOG.md b/CHANGELOG.md index 58d979805..f96b7f0c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,9 +23,9 @@ and this project adheres to * [activity]: perform client-side validation & show/hide fields in the "new location" modal * [tasks]: different layout for task list / my tasks, and fix link to tasks in alert or in warning * [admin]: links to activity admin section added again. +* [household]: household addresses ordered by ValidFrom date and by id to show the last created address on top. * [socialWorkAction]: display of social issue and parent issues + banner context added. - ## Test releases ### Test release 2021-10-27 diff --git a/src/Bundle/ChillPersonBundle/Entity/Household/Household.php b/src/Bundle/ChillPersonBundle/Entity/Household/Household.php index 2669aed32..7ff90b652 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Household/Household.php +++ b/src/Bundle/ChillPersonBundle/Entity/Household/Household.php @@ -41,7 +41,7 @@ class Household * targetEntity="Chill\MainBundle\Entity\Address", * cascade={"persist", "remove", "merge", "detach"}) * @ORM\JoinTable(name="chill_person_household_to_addresses") - * @ORM\OrderBy({"validFrom" = "DESC"}) + * @ORM\OrderBy({"validFrom" = "DESC", "id" = "DESC"}) * @Serializer\Groups({"write"}) */ private Collection $addresses;