On Wed, Jan 5, 2011 at 9:44 AM, roundrightfarm wrote:
> Thanks for your help. Got it to work... but
> can you please explain why this didn't work
>
> $orders = $this->Order->find('all',
> array('conditions'=>array('Order.week_id'=>$week_id)),
> array(
Thanks for your help. Got it to work... but
can you please explain why this didn't work
$orders = $this->Order->find('all',
array('conditions'=>array('Order.week_id'=>$week_id)),
array('contain' => array('Box' => array('Item')))
);
The Containable behaviour is your very best friend:
http://book.cakephp.org/view/1323/Containable
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 5 Jan 2011, at 13:10, roundrightfarm wrote:
> I'm having to do a find('all') with recursive = 2 to get at the da
I'm having to do a find('all') with recursive = 2 to get at the data I
need in my array. Unfortunately using this level of recursion also
pulls in a bunch of unneeded data, creating a monster array which is
stretching the memory limits.
Is there some syntax (perhaps involving 'fields') that will