Re: constructng result array when using findall

2007-12-28 Thread Chris Hartjes
On Dec 27, 2007 7:44 PM, bpscrugs <[EMAIL PROTECTED]> wrote: > Is there a predefined way to nest the [ServiceTime] array into the > [ServiceDay] array, so that on all findall queries i can have a > logically structured data model array? Thank you in advance -b You might want to take a look at the

Re: constructng result array when using findall

2007-12-28 Thread Adam Royle
I don't think something like that exists within cake, but you could add this in your afterFind method in your model. Adam On Dec 28, 10:44 am, bpscrugs <[EMAIL PROTECTED]> wrote: > i'm using cakephp to construct a logical data model array that will be > passed to a flex app. I have the following

constructng result array when using findall

2007-12-27 Thread bpscrugs
i'm using cakephp to construct a logical data model array that will be passed to a flex app. I have the following model association: ServiceDay->(hasMany)ServiceTime->(hasMany)ServiceTimePrice. So what the current output from my findall is something like this example: Array( [0] => Array(