UserBundle/Resources/config/validation.yml
OpenOrchestra\UserBundle\Document\User:
constraints:
- OpenOrchestra\UserBundle\Validator\Constraints\ComplexUserPassword: { groups: [Registration, UpdatePassword, ResetPassword]}
properties:
lastName:
- NotBlank: { groups: [Registration, Profile]}
firstName:
- NotBlank: { groups: [Registration, Profile]}