{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/986","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/986/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/986/events","html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/issues/986","id":10520268,"number":986,"title":"FOSUserBundle: How to override validations ?","user":{"login":"nirav-programmer","id":421466,"avatar_url":"https://avatars.githubusercontent.com/u/421466?v=3","gravatar_id":"","url":"https://api.github.com/users/nirav-programmer","html_url":"https://github.com/nirav-programmer","followers_url":"https://api.github.com/users/nirav-programmer/followers","following_url":"https://api.github.com/users/nirav-programmer/following{/other_user}","gists_url":"https://api.github.com/users/nirav-programmer/gists{/gist_id}","starred_url":"https://api.github.com/users/nirav-programmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirav-programmer/subscriptions","organizations_url":"https://api.github.com/users/nirav-programmer/orgs","repos_url":"https://api.github.com/users/nirav-programmer/repos","events_url":"https://api.github.com/users/nirav-programmer/events{/privacy}","received_events_url":"https://api.github.com/users/nirav-programmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2013-01-31T22:22:44Z","updated_at":"2016-01-26T10:18:55Z","closed_at":null,"body":"I want to override FOSUserBundle Validations and set New validations to my user entity's custom fields.\r\n\r\nAny help ?"},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/comments/174943658","html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/issues/986#issuecomment-174943658","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/986","id":174943658,"user":{"login":"jenniferleveaux","id":759032,"avatar_url":"https://avatars.githubusercontent.com/u/759032?v=3","gravatar_id":"","url":"https://api.github.com/users/jenniferleveaux","html_url":"https://github.com/jenniferleveaux","followers_url":"https://api.github.com/users/jenniferleveaux/followers","following_url":"https://api.github.com/users/jenniferleveaux/following{/other_user}","gists_url":"https://api.github.com/users/jenniferleveaux/gists{/gist_id}","starred_url":"https://api.github.com/users/jenniferleveaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenniferleveaux/subscriptions","organizations_url":"https://api.github.com/users/jenniferleveaux/orgs","repos_url":"https://api.github.com/users/jenniferleveaux/repos","events_url":"https://api.github.com/users/jenniferleveaux/events{/privacy}","received_events_url":"https://api.github.com/users/jenniferleveaux/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T10:18:54Z","updated_at":"2016-01-26T10:18:54Z","body":"If you are using validation groups, it won't work because in the FormFactory, FosUser creates a form with thoses groups : \"Registration\" and \"Default\".\r\nIf you added a validation group in the setDefaultOptions(), it won't work.\r\nYou have to use the \"Registration\" validaton group or, override the controller to add your validation group into the FormFactory Service or in the createForm() method."}}