Le 10/04/2011 23:49, Malc a écrit :
Basically it's working, but I always get some of the following
error's:

Catchable fatal error: Object of class xxxx could not be converted to
string in src\web\vendor\symfony\src\Symfony\Component\Form
\EntityChoiceField.php on line 243.

Can anybody tell me , how to fix that ? Did I forget something to
configure ? Should I convert the objects to strings ?

thx,
Malc
You have to choice:
- say to your EntityChoiceField to use a given property of the entity
- implement __toString to make your class castable as string
Read the doc about the EntityChoiceField: http://symfony.com/doc/2.0/book/doctrine/orm/form.html

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to