On Wed, Jan 5, 2011 at 9:44 AM, roundrightfarm <roundrightf...@gmail.com> 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('contain' => array('Box' => array('Item')))
>                );


You have too many arrays there.

$orders = $this->Order->find(
    'all',
    array(
        'conditions'=>array('Order.week_id'=>$week_id),
        'contain' => array('Box' => array('Item'))
    )
);

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to