From 056a1764d88287a16e874db5d5c26580794a5901 Mon Sep 17 00:00:00 2001 From: thisfro Date: Thu, 6 May 2021 13:31:06 +0200 Subject: [PATCH] add constraint for 4 digit zipcode --- src/Entity/Offering.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Offering.php b/src/Entity/Offering.php index 9aa13bc..6f8ac66 100644 --- a/src/Entity/Offering.php +++ b/src/Entity/Offering.php @@ -43,7 +43,7 @@ class Offering /** * @ORM\Column(type="integer") */ - #[Assert\NotBlank] + #[Assert\Length(4)] private $zipCode; /**