I think his tables are ok (he posted them here a couple of messages before).
orders:
id
date
customer_name
customer_phone
customer_etc
total
order_items:
id
order_id
name
description
price
sku
order_notes:
order_id
note
date
2007/11/30, Jon Bennett <[EMAIL PROTECTED]>:
>
> > do you mean my table names?
>
> no
>
> I'm assuming your orders table is:
>
> Order
> - id
> - order_item_id
> - order_note_id
> - created
> - modified
>
> and you have in your order model
>
> class Order extends AppModel {
> var $name = 'Order';
>
> var $hasMany = array(
> 'OrderNote' => array(
>
> 'className' => 'OrderNote',
> 'dependent' => true,
>
> ),
>
> 'OrderItem' => array(
>
> 'className' => 'OrderItem',
> 'dependent' => true,
>
> )
> );
> }
>
> is that correct?
>
> cheers,
>
> jon
>
>
> --
>
> jon bennett
> w: http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---