mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
addresses: add constraint in database to avoid error later
This commit is contained in:
@@ -140,6 +140,7 @@ class Address
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\PostalCode")
|
||||
* @ORM\JoinColumn(nullable=false)
|
||||
* @Groups({"write"})
|
||||
*/
|
||||
private ?PostalCode $postcode = null;
|
||||
|
Reference in New Issue
Block a user