{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/8892b9a13e2207579b7d69da0e1d74ef?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8892b9a13e2207579b7d69da0e1d74ef","url":"https://api.github.com/users/suncat2000","login":"suncat2000","id":1162437},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-10-31T14:27:55Z","closed_at":null,"comments":1,"url":"https://api.github.com/repos/cedriclombardot/AdmingeneratorGeneratorBundle/issues/35","body":"Hi\r\nSorry for my english...\r\nDecided to try AdmingeneratorBundles (installed AdmingeneratorIpsum). Decided use in one of my project, but can not figure out how to use own fields in EditForm.\r\nI use Doctrine ORM.\r\nFor example:\r\nIn db has field: text_type (string) \r\nit can be: ​​html or text.\r\nHow to describe this field in generator.yml, to the EditForm that the form contains a field select (\\select\\<\\option\\>html<\\/option\\><\\option\\>text<\\/option\\>\\/select\\). After submit form in db save selected value ('html' or 'text')...\r\n\r\nAnd if not difficult. Help to figure out:\r\n1. How to add the File field.\r\n2. How to add a visual editor (wysiwyg) for text field","html_url":"https://github.com/cedriclombardot/AdmingeneratorGeneratorBundle/issues/35","title":"Own fields?","number":35,"id":2097036,"created_at":"2011-10-31T13:45:33Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/e33e3b0f5cd521f7f9e0ee1096c3d0ed?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e33e3b0f5cd521f7f9e0ee1096c3d0ed","url":"https://api.github.com/users/cedriclombardot","login":"cedriclombardot","id":651484},"updated_at":"2011-10-31T14:27:55Z","url":"https://api.github.com/repos/cedriclombardot/AdmingeneratorGeneratorBundle/issues/comments/2577491","body":"First of all i invite you to read : http://symfony2admingenerator.org/documentation/form-advanced.html#choose-your-types\r\n\r\nYou have to ways to overwrite the type of a field by php overwriting the build method or by yaml.\r\n\r\nYaml is more fun :D so in your yaml so write something like that :\r\n\r\n````\r\nedit:\r\n  fields:\r\n    text_type:\r\n      formType: choice\r\n      formOptions:\r\n         choices:\r\n            text: A simple text\r\n            html: With a html editor\r\n````\r\n","id":2577491,"created_at":"2011-10-31T14:27:55Z"}}