Person attibutes name and surname become firstname and lastname

This commit is contained in:
Marc Ducobu
2014-11-18 16:15:47 +01:00
parent 24b126c5c3
commit 4c2a3c3624
13 changed files with 120 additions and 85 deletions

View File

@@ -8,10 +8,10 @@ Chill\PersonBundle\Entity\Person:
id: true
generator:
strategy: AUTO
name:
firstName:
type: string
length: 255
surname:
lastName:
type: string
length: 255
dateOfBirth:

View File

@@ -1,6 +1,6 @@
Chill\PersonBundle\Entity\Person:
properties:
name:
firstName:
- NotBlank:
groups: [general, creation]
- Length:
@@ -9,8 +9,7 @@ Chill\PersonBundle\Entity\Person:
minMessage: validation.Person.constraint.name_min
maxMessage: validation.Person.constraint.name_max
groups: [general, creation]
surname:
lastName:
- NotBlank:
groups: [general, creation]
- Length:
@@ -30,8 +29,6 @@ Chill\PersonBundle\Entity\Person:
- Callback:
methods: [isHistoryValid]
groups: [history_consistent]
Chill\PersonBundle\Entity\PersonHistoryFile:
properties: