mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
fix deprecations: replace methods by callback in callbacks
This commit is contained in:
parent
e53b181834
commit
2ac4a84114
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user