Re: About the findById method and it's returns

2008-07-17 Thread iWorm
It works! Thanks very much. On Jul 17, 1:45 am, mark_story <[EMAIL PROTECTED]> wrote: > Try setting $this->Order->recursive = 2 before doing the find.  Since > order doesn't directly relate to Shop it doesn't come up in the find > results with default settings. > > -Mark > > On Jul 16, 5:42 am, i

About the findById method and it's returns

2008-07-17 Thread iWorm
I've posted this yesterday, but I can't find it, so I post it again. --- Hi, I have 4 tables. people id name foods id name shopid shops id name orders id peopleid foodid In

Re: About the findById method and it's returns

2008-07-16 Thread mark_story
Try setting $this->Order->recursive = 2 before doing the find. Since order doesn't directly relate to Shop it doesn't come up in the find results with default settings. -Mark On Jul 16, 5:42 am, iWorm <[EMAIL PROTECTED]> wrote: --~--~-~--~~~---~--~~ You received

About the findById method and it's returns

2008-07-16 Thread iWorm
Hi, I have 4 tables. people id name foods id name shopid shops id name orders id peopleid foodid In my application, 1 order has 1 food, 1 shop has many foods, 1 people has many orders Models: //People var $hasMany = array( 'Order' => array(