{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1966","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1966/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1966/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1966/events","html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/issues/1966","id":108979925,"number":1966,"title":"How to override orm storage-validation in FOS 2.x","user":{"login":"maalicki","id":193701,"avatar_url":"https://avatars.githubusercontent.com/u/193701?v=3","gravatar_id":"","url":"https://api.github.com/users/maalicki","html_url":"https://github.com/maalicki","followers_url":"https://api.github.com/users/maalicki/followers","following_url":"https://api.github.com/users/maalicki/following{/other_user}","gists_url":"https://api.github.com/users/maalicki/gists{/gist_id}","starred_url":"https://api.github.com/users/maalicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maalicki/subscriptions","organizations_url":"https://api.github.com/users/maalicki/orgs","repos_url":"https://api.github.com/users/maalicki/repos","events_url":"https://api.github.com/users/maalicki/events{/privacy}","received_events_url":"https://api.github.com/users/maalicki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-29T23:23:04Z","updated_at":"2015-09-30T10:39:14Z","closed_at":null,"body":"OK, I want to override `storage-validation` and remove that key\r\n\r\n```\r\n        <constraint name=\"Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity\">\r\n            <option name=\"fields\">usernameCanonical</option>\r\n            <option name=\"errorPath\">username</option>\r\n            <option name=\"message\">fos_user.username.already_used</option>\r\n            <option name=\"groups\">\r\n                <value>Registration</value>\r\n                <value>Profile</value>\r\n            </option>\r\n        </constraint>\r\n```\r\nWhere should I put file from\r\n`/vendor/friendsofsymfony/user-bundle/Resources/config/storage-validation/orm.xml`"},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/comments/144350808","html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/issues/1966#issuecomment-144350808","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/1966","id":144350808,"user":{"login":"maalicki","id":193701,"avatar_url":"https://avatars.githubusercontent.com/u/193701?v=3","gravatar_id":"","url":"https://api.github.com/users/maalicki","html_url":"https://github.com/maalicki","followers_url":"https://api.github.com/users/maalicki/followers","following_url":"https://api.github.com/users/maalicki/following{/other_user}","gists_url":"https://api.github.com/users/maalicki/gists{/gist_id}","starred_url":"https://api.github.com/users/maalicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maalicki/subscriptions","organizations_url":"https://api.github.com/users/maalicki/orgs","repos_url":"https://api.github.com/users/maalicki/repos","events_url":"https://api.github.com/users/maalicki/events{/privacy}","received_events_url":"https://api.github.com/users/maalicki/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T10:39:13Z","updated_at":"2015-09-30T10:39:13Z","body":"@stof I want it to be unique but in that way:\r\n\r\n```\r\n * @UniqueEntity(\r\n *     fields={\"organization\", \"usernameCanonical\"},\r\n *     errorPath=\"username\",\r\n *     message=\"This username is already in use on that company.\"\r\n * )\r\n```\r\nI forgot to mention about this ;)"}}