fix person creation validation close #369

This commit is contained in:
2014-12-09 22:53:24 +01:00
parent 10da02f9ba
commit 1f2c8bdb72
2 changed files with 19 additions and 3 deletions

View File

@@ -17,11 +17,14 @@ Chill\PersonBundle\Entity\Person:
max: 255
minMessage: 'This name is too short. It must containt {{ limit }} chars'
maxMessage: 'This name is too long. It must containt {{ limit }} chars'
groups: [general]
groups: [general, creation]
dateOfBirth:
- Date:
message: 'Birthdate not valid'
groups: [general, creation]
genre:
- NotNull:
groups: [general, creation]
history:
- Valid:
traverse: true