chill-bundles/Resources/config/validation.yml

64 lines
1.4 KiB
YAML

Chill\MainBundle\Entity\PermissionsGroup:
properties:
name:
- NotBlank: ~
- Length:
max: 50
roleScopes:
- Valid: ~
constraints:
- Callback:
callback: isRoleScopePresentOnce
Chill\MainBundle\Entity\User:
properties:
username:
- Length:
max: 70
min: 3
email:
- Email: ~
constraints:
- Callback:
callback: isGroupCenterPresentOnce
- \Chill\MainBundle\Validation\Constraint\UserUniqueEmailAndUsernameConstraint: ~
Chill\MainBundle\Entity\RoleScope:
constraints:
- \Chill\MainBundle\Validation\Constraint\RoleScopeScopePresenceConstraint: ~
Chill\MainBundle\Entity\Center:
properties:
name:
- NotBlank: ~
- Length:
max: 50
min: 2
Chill\MainBundle\Entity\Address:
properties:
streetAddress1:
- Length:
min: 2
max: 250
- NotNull: ~
- NotBlank: ~
postcode:
- NotNull: ~
validFrom:
- NotNull: ~
- Date: ~
Chill\MainBundle\Entity\PostalCode:
properties:
name:
- Length:
max: 250
min: 2
code:
- Length:
min: 2
max: 100
country:
- NotNull: ~