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
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
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
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(