On 30/11/2007, Luke <[EMAIL PROTECTED]> wrote:
>
> no that would only allow me to have one note and one item per order...
> I want many items and many notes per order... so I put order_id inside
> each of those tables.
oh yeah, doh!
it's even easier then, the issue is most likely cause by cake's
scaffolding assuming alphabetically, eg, 'i' before 'n' orderItem
before orderNote! this is why your associations work when you do:
class Order extends AppModel
{
var $name = 'Order';
var $hasMany = array(
'OrderItem'=>array('dependent'=>true),
'OrderNote' => array('dependent'=>true)
);
}
hth
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
-~----------~----~----~----~------~----~------~--~---