nobody?
On Nov 28, 10:41 am, Luke <[EMAIL PROTECTED]> wrote:
> I am trying to set up associations between my orders model and my
> orderitems model. It seems to be working except for this error I'm
> getting. What am I doing wrong? (see screenshot below)
>
> Here are my models:
>
> class OrderItem extends AppModel {
>var $name = 'OrderItem';
>var $belongsTo = array('Order' =>
>array('className' => 'Order',
> 'foreignKey' => 'order_id'
>)
> );}
>
> ?>
>
> class Order extends AppModel {
>var $name = 'Order';
>
>var $hasMany = array('OrderItem' =>
> array('className' => 'OrderItem',
>'order' => 'OrderItem.status_id
> DESC',
>'foreignKey'=> 'order_id',
>'dependent' => true
> )
> );}
>
> ?>
>
> here is a screenshot of the error I am getting:
>
> http://pleaseproof.com/luke/cake.gif
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---