addresses: add constraint in database to avoid error later

This commit is contained in:
2022-04-14 01:11:39 +02:00
parent a52f29bb78
commit afa38e9dd5
3 changed files with 54 additions and 0 deletions

View File

@@ -140,6 +140,7 @@ class Address
/**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\PostalCode")
* @ORM\JoinColumn(nullable=false)
* @Groups({"write"})
*/
private ?PostalCode $postcode = null;