I am using FOSUserBundle. In my project, I created my own UserBundle and reconfigured the controller, forms, and handlers. Now, when a user tries to register with an existing email, the site crashes (email is unique to the doctrine). Validation does not seem to be done. I thought there would be some kind of check, as in my validation.yml:
YOP\UserBundle\Entity\User: constraints: - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: email properties: email: - Email: ~
Why is verification not performed in the email field? How can I make sure my validation restrictions are taken into account?
PS: validation.yml file is not in my UserBundle, is this a problem?
EDIT:
The code of my UserBundle is available here. I don’t understand why the check is no longer performed ...
validation symfony fosuserbundle
François Koessler Sep 05 '12 at 7:16 2012-09-05 07:16
source share