> Does cake not allow multiple "hasMany" associations? for some reason
> it is only rendering scaffolding for the first of the two I'm putting
> in here:
>
> class Order extends AppModel {
>    var $name = 'Order';
>
>    var $hasMany = array(
>                          'OrderNote' => array(
>
>                                'className'     => 'OrderNote',
>                                'dependent'     => true,
>
>                          ),
>
>                          'OrderItem' => array(
>
>                                'className'     => 'OrderItem',
>                                'dependent'     => true,
>
>                          )
>                   );
> }
>
> if I switch the two and make OrderItem first, then that shows up in
> the scaffolding. What's the deal??

I think scaffolding works by matching the order of the foreign keys in
your db table with your assocaitions. Always best to stick to a A-Z
(why can't I think of the correct term for that!) and you'll go no
wrong (as you've proved!)

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

Reply via email to