I'm working right now with sonata admin bundle, in my model I have a Boolean attribute which I want display in my Edit view by : "yes" if the attribute is true, "false" if the attribute is false.. making this :
->add('istrue', null, array())
displays "1" if true and "0" if false.. but Using the sonata_type_boolean bugs it displays always "yes" even if the attribute is false.
->add('istrue','sonata_type_boolean', array())
Any one knows how to fix this ? Thank you