so one Phone can have many accounts? ok?
On which level have you set recursive?
0 will get you just the account
1 should get you Account and Phone
2 should get you Account, Phone and PhoneType
If you see that you get huge arrays with data you won't need you should
consider zu work with Containable which is automatically active with
Cake 2.0. That will help you to get the data you really want. With
containable you can deifine the rules for the data you really need. Very
powerful, very handy.
Am 21.09.2012 22:13, schrieb Michael Bryant:
> I am new to CakePHP. I am trying to understand the models.
> I have Accounts that BelongsTo Contacts and Phones.
> the Contacts also BelongsTo Phones
> Phones BelongsTo PhoneType
> PhoneType hasMany Phones
> What I want to do is View an Account and get the list of Phones and the *name
> of the Phone type*
> I get the list of Phones, but not the associated PhoneType info.
> Thanks for your help.