I've been try hard to understand and fix a problem  on my project.
Then I decided to create another project based on the same DB and it
worked.

When Cake sees a relationship it takes the field named "name" and show
it on the view instead of the field ID, correct?

i.e: table stocks
         fields:
                  id
                  name

table moviments
           fields:
                    id
                    stocks_id

models:
        stock
           var $hasMany = array('Moviment')

       moviment
          var $belongsTo = array('Stock')

I have the same thing in 2 projects in one cake whenever I edit
moviments cake shows me the name of the stock for me to pick.
But in the other it just shows the id (which is not desired).

Where is the secret behind that? Can anyone point where is my mistake
or where should I look?

Thanks a lot.

Carlos



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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