add constraint for 4 digit zipcode

This commit is contained in:
Jannis Portmann 2021-05-06 13:31:06 +02:00
parent 379121c777
commit 056a1764d8

View file

@ -43,7 +43,7 @@ class Offering
/**
* @ORM\Column(type="integer")
*/
#[Assert\NotBlank]
#[Assert\Length(4)]
private $zipCode;
/**