{"action":"created","issue":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/246","labels_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/246/comments","events_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/246/events","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/issues/246","id":70617185,"number":246,"title":"Redirect to 404 page when database exception is thrown","user":{"login":"fadoe","id":1300722,"avatar_url":"https://avatars.githubusercontent.com/u/1300722?v=3","gravatar_id":"","url":"https://api.github.com/users/fadoe","html_url":"https://github.com/fadoe","followers_url":"https://api.github.com/users/fadoe/followers","following_url":"https://api.github.com/users/fadoe/following{/other_user}","gists_url":"https://api.github.com/users/fadoe/gists{/gist_id}","starred_url":"https://api.github.com/users/fadoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fadoe/subscriptions","organizations_url":"https://api.github.com/users/fadoe/orgs","repos_url":"https://api.github.com/users/fadoe/repos","events_url":"https://api.github.com/users/fadoe/events{/privacy}","received_events_url":"https://api.github.com/users/fadoe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/labels/feature","name":"feature","color":"00994D"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-24T07:52:38Z","updated_at":"2015-05-07T10:00:20Z","closed_at":null,"body":"When the database adapter throws an exception (for example unique key constraint or missing required data) I get a 404 page.\r\n\r\nI think it is better to show the input form again and display the errors.\r\n\r\nI'm using version 1.3.0."},"comment":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/comments/99800818","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/issues/246#issuecomment-99800818","issue_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/246","id":99800818,"user":{"login":"Pierstoval","id":3369266,"avatar_url":"https://avatars.githubusercontent.com/u/3369266?v=3","gravatar_id":"","url":"https://api.github.com/users/Pierstoval","html_url":"https://github.com/Pierstoval","followers_url":"https://api.github.com/users/Pierstoval/followers","following_url":"https://api.github.com/users/Pierstoval/following{/other_user}","gists_url":"https://api.github.com/users/Pierstoval/gists{/gist_id}","starred_url":"https://api.github.com/users/Pierstoval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pierstoval/subscriptions","organizations_url":"https://api.github.com/users/Pierstoval/orgs","repos_url":"https://api.github.com/users/Pierstoval/repos","events_url":"https://api.github.com/users/Pierstoval/events{/privacy}","received_events_url":"https://api.github.com/users/Pierstoval/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T10:00:20Z","updated_at":"2015-05-07T10:00:20Z","body":"@fadoe Errors in forms can be thrown using [Symfony's Validation](http://symfony.com/doc/current/book/validation.html), read the docs for more infos. If you are using constraints on your entities, any form type with the `data_class` set to this entity will use the Symfony validator to check whether the form is valid or not. And the errors are correctly shown in EasyAdmin, as long as you use the native validation system.\r\n \r\nWhat I was talking about is internal errors, like 500 errors. "}}