RE: Help with Model associations and find

2013-09-06 Thread Nikki McMahon
egroups.com [mailto:cake-php@googlegroups.com] On Behalf Of lowpass Sent: 06 September 2013 01:51 AM To: cake-php@googlegroups.com Subject: Re: Help with Model associations and find If I understand correctly, you want the latest DataImport record, and all of its associated ClientData records,

RE: Help with Model associations and find

2013-09-06 Thread Nikki McMahon
'contain' => array( 'TelemetryData' => array( 'Hospital' => array( 'Province' ) ) ), 'recursive' => 3 ) ) Thanks for the help! From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Beha

Re: Help with Model associations and find

2013-09-05 Thread lowpass
;]['Province']['id'] = 9; > ClientData[1]['Hospital']['Province']['name'] = 'Gauteng'; > ClientData[2]['id'] = 6; > ClientData[2]['name'] = 'Client Name 2'; > ClientData[2]['DataImport'][&#x

RE: Help with Model associations and find

2013-09-04 Thread Nikki McMahon
x27;Hospital']['Province']['name'] = 'Eastern Cape'; I'm not sure if this helps at all? I basically loop through ClientData after pulling this, adjust some values according to algorithms and then print it out into a table. In that table I need to print the P

Re: Help with Model associations and find

2013-09-04 Thread Anja Liebermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Nikki, if I undestand it correctly this might be a case for the Containable behaviour. But I am not sure what your fields information will do. What do you get back, if you leave that out? Is it correct, that you want to have all your clientData b

Help with Model associations and find

2013-09-03 Thread Nif
Hi All, I have something I am struggling with and hoping someone can help? I've used Cake for some simple tools and site structure in the past and I'm currently working on my first complex db design within the framework. I know how to do this in mySQL, but cannot figure out how to use Cake's M