hi,

Do you really want to display the id?
By default the getRelatedModelName looks for id or more precisely uses
"getPrimaryKey" method and set it in <option value="<pk>"> and what
you see (displayed value) comes from __toString method unless you
specify method options in widget constructor.

-
Sadri

On Sat, May 1, 2010 at 3:24 AM, Andro Fumero <[email protected]> wrote:
> hi,
> im still studying symfony. dont know if i have the right question. anyway
>
> i have two tables user and profile and is connected.
>
> in the editusers and addusers why does it display the description column
> instead of the profileid.?
>
>
> 'profileid' => new sfWidgetFormDoctrineChoice(array('model' =>
> $this->getRelatedModelName('Profile'), 'add_empty' => false)),
>
> --
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to