fix bug when postal code is null + add validation for address &postcode

fix #20
fix #18
This commit is contained in:
2016-03-18 11:49:56 +01:00
parent 4a77d7617a
commit 386d4dd623
4 changed files with 31 additions and 1 deletions

View File

@@ -29,3 +29,28 @@ Chill\MainBundle\Entity\Center:
- Length:
max: 50
min: 3
Chill\MainBundle\Entity\Address:
properties:
streetAddress1:
- Length:
min: 2
max: 250
postcode:
- NotNull: ~
validFrom:
- NotNull: ~
- Date: ~
Chill\MainBundle\Entity\PostalCode:
properties:
name:
- Length:
max: 250
min: 2
code:
- Length:
min: 2
max: 100
country:
- NotNull: ~