Try setting var $recursive = 2 in your ModelA class. Or, look in the api for Model::findAll, and you will see that the last parameter is 'recursive', set that to 2.
By setting your ModelA recursive variable, this will cause every findAll call to return a third level association, while setting the parameter in the findAll call will only return a third level association on that particular call. I am fairly new to cake as well, but I am pretty sure this is what you are looking for... On May 19, 10:33 am, ipa01 <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to cake, so I am still not too understand about model and > controller. > > I have associated 3 models > > ModelA "hasMany" ModelB, ModelB in turns "hasOne" ModelC > > ModelA is associated with ModelB with UniqueID_A, while ModelB is > associated with ModelC with UniqueID_B > > A scenario would be, > > Whenever ModelA UniqueID_A is called, I want to be able to access the > row in ModelC with UniqueID_B as well. > > How do I do this? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
