fix deprecation error on constraint

This commit is contained in:
nobohan 2018-04-23 16:56:19 +02:00
parent e6a1dcd7a4
commit 8c4ddd8342

View File

@ -1,27 +1,29 @@
Chill\MainBundle\Entity\PermissionsGroup:
properties:
name:
name:
- NotBlank: ~
- Length:
max: 50
roleScopes:
- Valid: ~
constraints:
- Callback: [isRoleScopePresentOnce]
- Callback:
callback: isRoleScopePresentOnce
Chill\MainBundle\Entity\User:
properties:
username:
- Length:
- Length:
max: 70
min: 3
constraints:
- Callback: [isGroupCenterPresentOnce]
- Callback:
callback: isGroupCenterPresentOnce
Chill\MainBundle\Entity\RoleScope:
constraints:
- \Chill\MainBundle\Validation\Constraint\RoleScopeScopePresenceConstraint: ~
Chill\MainBundle\Entity\Center:
properties:
name:
@ -41,11 +43,11 @@ Chill\MainBundle\Entity\Address:
validFrom:
- NotNull: ~
- Date: ~
Chill\MainBundle\Entity\PostalCode:
properties:
name:
- Length:
- Length:
max: 250
min: 2
code:
@ -53,4 +55,4 @@ Chill\MainBundle\Entity\PostalCode:
min: 2
max: 100
country:
- NotNull: ~
- NotNull: ~