I've found the gap! I added in the contact model

var $displayField = 'surname';


Thx

On 16 Set, 16:26, salgua1977 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have an association "hasAndBelongsToMany" between 2 models. It
> works, but when I add a related field in a form (example: I have a
> form to add nations, there is an association between nation and
> contact model, and I want in the nation model a list field to select
> contacts), this field works, but it show me only the contact.title
> field. I think that there is a way to specify wich field it has to
> show (maybe in the model...), but I cannot find them.
>
> Any idea?
>
> Thx and bye,
> Salvatore
--~--~---------~--~----~------------~-------~--~----~
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