fix deprecations: replace methods by callback in callbacks

This commit is contained in:
nobohan 2018-04-04 15:47:57 +02:00
parent e53b181834
commit 2ac4a84114

View File

@ -1,9 +1,9 @@
Chill\PersonBundle\Entity\Person: Chill\PersonBundle\Entity\Person:
properties: properties:
firstName: firstName:
- NotBlank: - NotBlank:
groups: [general, creation] groups: [general, creation]
- Length: - Length:
min: 2 min: 2
max: 255 max: 255
minMessage: 'This name is too short. It must containt {{ limit }} chars' minMessage: 'This name is too short. It must containt {{ limit }} chars'
@ -12,17 +12,17 @@ Chill\PersonBundle\Entity\Person:
lastName: lastName:
- NotBlank: - NotBlank:
groups: [general, creation] groups: [general, creation]
- Length: - Length:
min: 2 min: 2
max: 255 max: 255
minMessage: 'This name is too short. It must containt {{ limit }} chars' minMessage: 'This name is too short. It must containt {{ limit }} chars'
maxMessage: 'This name is too long. It must containt {{ limit }} chars' maxMessage: 'This name is too long. It must containt {{ limit }} chars'
groups: [general, creation] groups: [general, creation]
birthdate: birthdate:
- Date: - Date:
message: 'Birthdate not valid' message: 'Birthdate not valid'
groups: [general, creation] groups: [general, creation]
- Chill\PersonBundle\Validator\Constraints\Birthdate: - Chill\PersonBundle\Validator\Constraints\Birthdate:
groups: [general, creation] groups: [general, creation]
gender: gender:
- NotNull: - NotNull:
@ -32,21 +32,21 @@ Chill\PersonBundle\Entity\Person:
traverse: true traverse: true
constraints: constraints:
- Callback: - Callback:
methods: [isAccompanyingPeriodValid] callback: isAccompanyingPeriodValid
groups: [accompanying_period_consistent] groups: [accompanying_period_consistent]
- Callback: - Callback:
methods: [isAddressesValid] callback: isAddressesValid
groups: [addresses_consistent] groups: [addresses_consistent]
Chill\PersonBundle\Entity\AccompanyingPeriod: Chill\PersonBundle\Entity\AccompanyingPeriod:
properties: properties:
openingDate: openingDate:
- Date: - Date:
message: 'Opening date is not valid' message: 'Opening date is not valid'
- NotNull: - NotNull:
message: 'Opening date can not be null' message: 'Opening date can not be null'
closingDate: closingDate:
- Date: - Date:
message: 'Closing date is not valid' message: 'Closing date is not valid'
- NotNull: - NotNull:
message: 'Closing date can not be null' message: 'Closing date can not be null'