Hi, to everyone i solve out my problem, if any one has a similar
problem the way to solve it´s to add in the model de variable:  var
$displayField,

and write de fild name that you want to display like this; var
$displayField = 'login';

Hope it help´s


On 16 nov, 19:56, "omar.laverde" <[EMAIL PROTECTED]> wrote:
> Hi to every one,
>
> i am using the hasAndBelongsToMany (cake 1.2) using this tables:
> profiles, roles, profiles_roles.
>
> the way how it works it`s that the profile has many roles and the
> profiles_roles is the middle table, the problem that i have is that in
> the edit.ctp is displaying the id of the roles table, not the name of
> the role. what should i change to get that this view display the name
> of the role not the id.. ??
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to