Ordering household addresses

This commit is contained in:
LenaertsJ 2021-11-05 12:34:35 +00:00 committed by Julien Fastré
parent b615f0c79f
commit fd2d74c9f5
2 changed files with 2 additions and 2 deletions

View File

@ -23,9 +23,9 @@ and this project adheres to
* [activity]: perform client-side validation & show/hide fields in the "new location" modal * [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 * [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. * [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. * [socialWorkAction]: display of social issue and parent issues + banner context added.
## Test releases ## Test releases
### Test release 2021-10-27 ### Test release 2021-10-27

View File

@ -41,7 +41,7 @@ class Household
* targetEntity="Chill\MainBundle\Entity\Address", * targetEntity="Chill\MainBundle\Entity\Address",
* cascade={"persist", "remove", "merge", "detach"}) * cascade={"persist", "remove", "merge", "detach"})
* @ORM\JoinTable(name="chill_person_household_to_addresses") * @ORM\JoinTable(name="chill_person_household_to_addresses")
* @ORM\OrderBy({"validFrom" = "DESC"}) * @ORM\OrderBy({"validFrom" = "DESC", "id" = "DESC"})
* @Serializer\Groups({"write"}) * @Serializer\Groups({"write"})
*/ */
private Collection $addresses; private Collection $addresses;