1 Mixstore\UserBundle\Entity\User:
3 # Your custom fields in your user entity...
6 message: mixstore_user.name.blank
7 groups: [ "MixstoreProfile" ]
10 minMessage: mixstore_user.name.short
12 maxMessage: mixstore_user.name.long
13 groups: [ "MixstoreProfile" ]
16 message: mixstore_user.surname.blank
17 groups: [ "MixstoreProfile" ]
20 minMessage: mixstore_user.surname.short
22 maxMessage: mixstore_user.surname.long
23 groups: [ "MixstoreProfile" ]
25 # Note: We still want to validate the email
26 # See FOSUserBundle/Resources/config/validation/orm.xml to understand
27 # the UniqueEntity constraint that was originally applied to both
28 # username and email fields
30 # As you can see, we are only applying the UniqueEntity constraint to
31 # the email field and not the username field.
32 FOS\UserBundle\Model\User:
34 - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity:
37 message: fos_user.email.already_used
38 groups: [ "MixstoreRegistration", "MixstoreProfile" ]
43 message: fos_user.email.blank
44 groups: [ "MixstoreRegistration", "MixstoreProfile" ]
47 minMessage: fos_user.email.short
49 maxMessage: fos_user.email.long
50 groups: [ "MixstoreRegistration", "ResetPassword" ]
52 message: fos_user.email.invalid
53 groups: [ "MixstoreRegistration", "MixstoreProfile" ]
56 message: fos_user.password.blank
57 groups: [ "MixstoreRegistration", "ResetPassword", "ChangePassword" ]
60 minMessage: fos_user.password.blank
61 groups: [ "MixstoreRegistration", "MixstoreProfile", "ResetPassword", "ChangePassword"]
63 FOS\UserBundle\Model\Group:
67 message: fos_user.group.blank
68 groups: [ "MixstoreRegistration" ]
71 minMessage: fos_user.group.short
73 maxMessage: fos_user.group.long
74 groups: [ "MixstoreRegistration" ]