{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3268","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3268/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3268/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3268/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/3268","id":107458882,"number":3268,"title":"Please define a type for field. Why???","user":{"login":"nkl90","id":3640423,"avatar_url":"https://avatars.githubusercontent.com/u/3640423?v=3","gravatar_id":"","url":"https://api.github.com/users/nkl90","html_url":"https://github.com/nkl90","followers_url":"https://api.github.com/users/nkl90/followers","following_url":"https://api.github.com/users/nkl90/following{/other_user}","gists_url":"https://api.github.com/users/nkl90/gists{/gist_id}","starred_url":"https://api.github.com/users/nkl90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkl90/subscriptions","organizations_url":"https://api.github.com/users/nkl90/orgs","repos_url":"https://api.github.com/users/nkl90/repos","events_url":"https://api.github.com/users/nkl90/events{/privacy}","received_events_url":"https://api.github.com/users/nkl90/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-21T07:36:59Z","updated_at":"2015-09-21T08:48:55Z","closed_at":"2015-09-21T08:31:36Z","body":"Hello. Sorry for my English. An error occurs repeatedly when I add new field in the database. When creating a table, I had a single field with type boolean. Sonata admin works fine for this fields draws the desired input fields. But when I add a new field is exactly the same with type boolean \r\nor any other, SonataAdmin requests clearly specify the type of field, but in Entity it is set! Why??? Why SonataAdmin requests define a type for field if this type is set in Entity???\r\nFragment of my Entity\r\n/**\r\n     * @var boolean\r\n     *\r\n     * @ORM\\Column(name=\"spoiler\", type=\"boolean\", nullable=true)\r\n     */\r\n    private $spoiler = false; //this field create on a table create\r\n\t\r\n\t/**\r\n     * @var boolean\r\n     *\r\n     * @ORM\\Column(name=\"ban_author\", type=\"boolean\", nullable=true)\r\n     */\r\n    private $banAuthor = false; //this field I then added\r\n\r\n /**\r\n     * @param FormMapper $formMapper\r\n     */\r\n    protected function configureFormFields(FormMapper $formMapper)\r\n    {\r\n        $formMapper\r\n            ->add('short_name', 'text')\r\n            ->add('description')\r\n\t\t\t->add('spoiler')\r\n\t\t\t->add('ban_author')\r\n        ;\r\n    }\r\nAnd SonataAdminBundle throw me this exception \"Please define a type for field `ban_author` in `AdminBundle\\Admin\\CommentsReasonsAdmin`\"\r\nwhat am I doing wrong??? And this happens all the time with new fields in the table and is not explicitly indicate to the type SonataAdmin does not work."},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments/141913167","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/3268#issuecomment-141913167","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3268","id":141913167,"user":{"login":"jvasseur","id":849295,"avatar_url":"https://avatars.githubusercontent.com/u/849295?v=3","gravatar_id":"","url":"https://api.github.com/users/jvasseur","html_url":"https://github.com/jvasseur","followers_url":"https://api.github.com/users/jvasseur/followers","following_url":"https://api.github.com/users/jvasseur/following{/other_user}","gists_url":"https://api.github.com/users/jvasseur/gists{/gist_id}","starred_url":"https://api.github.com/users/jvasseur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvasseur/subscriptions","organizations_url":"https://api.github.com/users/jvasseur/orgs","repos_url":"https://api.github.com/users/jvasseur/repos","events_url":"https://api.github.com/users/jvasseur/events{/privacy}","received_events_url":"https://api.github.com/users/jvasseur/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T08:48:55Z","updated_at":"2015-09-21T08:48:55Z","body":"Maybe this should be fixed in the Bundle, it's strange that Sonata can find the value of the field and not the metadata associated with it."}}