I'm having trouble with the Sonata Admin Bundle, which runs on Symfony2.
I have an entity with an enum field, which I converted to string, because there are no enums available.
I used choice
as a type of the list view, and provided my options. Works great in edit view - I can select from a list of options, and the actual value from DB is highlighted.
But I would like to be able to edit this inline (in list view, not in edit). I've added 'editable' => true
, which works great, but the type of field I'm getting in edit is a simple text one - I can input anything there.
I've tried all the miracles I could find online, and nothing helps.
This works by default on the boolean types - it indicates yes
and no
(green and red) buttons, and when I click any, I get a select box with the two options to chose from. And all that happens inline.
Any ideas how to achieve that?
Thanks!