Re: getting cousin data

2012-09-22 Thread Anja Liebermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Michael, 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

getting cousin data

2012-09-21 Thread 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

Re: getting cousin data

2012-09-21 Thread Greg Skerman
use the containable behavior On Sat, Sep 22, 2012 at 6:13 AM, Michael Bryant mbsmo...@gmail.com wrote: 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