try to fix some things

This commit is contained in:
2022-02-28 16:09:52 +01:00
parent cdd21c94c6
commit 1e146f542e
5 changed files with 82 additions and 29 deletions

View File

@@ -19,6 +19,7 @@ use Chill\ThirdPartyBundle\Entity\ThirdParty;
use DateTimeImmutable;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Serializer\Annotation\Context;
/**
* @ORM\Entity(repositoryClass=ResidentialAddressRepository::class)
@@ -48,6 +49,7 @@ class ResidentialAddress
* @ORM\ManyToOne(targetEntity=Person::class)
* @ORM\JoinColumn(nullable=true)
* @Groups({"read"})
* @Context(normalizationContext={"groups"={"minimal"}})
*/
private ?Person $hostPerson = null;