What I realised (I didn't know at the time of writing the original question) was that the error occurred because the field had a relationship attached to it, and when it tried to render the field it couldn't because of the relationship.

You can simplify with array('class' => 'ShoutAdminBundle::Admin')
–
rooneyFeb 3 '12 at 14:20

1

@mickburkejnr Thanks For such a simple answer, after a search of 7 hours I found this answer and helped . Now I am getting a list of multiple choice but i want a drop down. please help
–
ScoRpionFeb 23 '12 at 6:12

You build the drop down field inside the buildForm section. I don't have the code to hand, but if you look at the Forms page on the Symfony documentation it'll have the answer there.
–
mickburkejnrFeb 23 '12 at 10:28

I guess the property option should be filled with the name of the property you want to get when you echo your object. I don't understand that you are not confused when getting this error and rendering only INT's or BIGINT's.

Whats confused me is where I'm supposed to put it. Do I put it where I'm rendering the form, or do I put it in the Entity file that the form will put data in to, or do I put it in the twig file. Thats what's confused me. I'm not just rendering INT's and BIGINT's, I'm rendering VARCHAR fields also.
–
mickburkejnrSep 16 '11 at 10:20

you should define a __toString() method in your Entity file.
–
greg0ireSep 16 '11 at 11:22