Hi

you need another table, call it orderlines for instance, with these
fields:
order_id
item_id
quantity
... and maybe some more

and a belongsTo Order association
When you retrieve an Order, you'll get its Orderlines too

On 24 fév, 16:18, "mike" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a small problem and wonder if I could get some advice on the
> best way to overcome it.
>
> What I want is an orders table where I can input data such as items,
> order reference, notes, delivery date etc. The table will be linked to
> a customer table. What I'm stuck on however if the best way to record
> the various order items (products) that go with the order. The amount
> of items will of course vary from order to order, so I'm wondering if
> there is a way to record a variable amount of data separately but
> within one static orders table. Or, maybe there is a need for another
> table linked into orders?
>
> Your advice and expertise is welcome and always greatly appreciated.
>
> Thanks,
>
> Mike.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to