Friday, May 1, 2009

Accessing Other Models

I have the following setup:

Contractor hasMany Projects

Project hasMany Risks

Risk belongsTo Riskcategory

===
In my projects view, I am shown related project risks. One of the
column headers is the "Risk Category". However, it only shows the
primary key id (riskcategories_id), which is a foreign key in the
Risks table.

How can I show the actual category name in the related Project Risks
table in the view?

--~--~---------~--~----~------------~-------~--~----~
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: