add groups on household serialization

This commit is contained in:
2021-06-02 21:44:49 +02:00
parent 261acdfd24
commit e9caa7b4b8
4 changed files with 67 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ class Household
* @ORM\Column(type="integer")
* @Serializer\Groups({"read"})
*/
private ?int $id;
private ?int $id = null;
/**
* Addresses
@@ -44,6 +44,7 @@ class Household
* targetEntity=HouseholdMember::class,
* mappedBy="household"
* )
* @Serializer\Groups({"read"})
*/
private Collection $members;