diff --git a/Resources/config/validation.yml b/Resources/config/validation.yml index 87f696f43..cd94af646 100644 --- a/Resources/config/validation.yml +++ b/Resources/config/validation.yml @@ -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: ~ \ No newline at end of file + - NotNull: ~