Monday, October 27, 2008

question about relationship

Haya everybody

I've got a table named: ordersMoviments where I've got a field named:
item_id,
I've another table named items which has a field named: name.

in my item model I have:

var $hasMany = array('OrderMoviments');

and in my orderMoviment model I've got

var $belongsTo = array('Item');

I've got the same thing working with other tables but those mentioned
above when I go to the views (orders) generated by the cake bake they
only show the Item id and what I want is the Item name.

I have deleted many times the contend of /app/tmp/cache/models but I
cannot figure what is wrong.

Does anyone has any idea to give me

Thanks

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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: