Remember as well, if the models are linked in this way you can chain
these calls, to access tables deeper in the relationships:

class Post extends AppModel
{
 var $hasOne = 'Author';

 function something()
 {
   /* Here you can access $this->Author->OtherModel->something...
  assuming the OtherModel class is linked from the Author model */
}
}

Can be quite handy.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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