{"action":"closed","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3256","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3256/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3256/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3256/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/3256","id":106789365,"number":3256,"title":"uniqueEntity validation of multiple fields doesn't work with SonataAdminBundle","user":{"login":"stwe","id":2964748,"avatar_url":"https://avatars.githubusercontent.com/u/2964748?v=3","gravatar_id":"","url":"https://api.github.com/users/stwe","html_url":"https://github.com/stwe","followers_url":"https://api.github.com/users/stwe/followers","following_url":"https://api.github.com/users/stwe/following{/other_user}","gists_url":"https://api.github.com/users/stwe/gists{/gist_id}","starred_url":"https://api.github.com/users/stwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stwe/subscriptions","organizations_url":"https://api.github.com/users/stwe/orgs","repos_url":"https://api.github.com/users/stwe/repos","events_url":"https://api.github.com/users/stwe/events{/privacy}","received_events_url":"https://api.github.com/users/stwe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-16T14:48:04Z","updated_at":"2015-09-23T12:07:16Z","closed_at":"2015-09-23T12:07:15Z","body":"I was trying to use the SonataAdminBundle, but the @UniqueEntity Annotation doesn't work.\r\n\r\nThis is my entity:\r\n\r\n    /**\r\n     * @ORM\\Table()\r\n     * @ORM\\Entity(repositoryClass=\"AppBundle\\Entity\\FooRepository\")\r\n     * @UniqueEntity(\r\n     *     fields={\"name\", \"public\", \"user\"},\r\n     *     errorPath=\"name\",\r\n     *     message=\"This name is already in use.\"\r\n     * )\r\n     *\r\n     */\r\n    class Foo \r\n    {\r\n        //...\r\n    }\r\n\r\nThe uniqueEntity validation in my Frontend works properly! However SonataAdmin ignores the Annoation."}}