in Product Model var $belongsTo = "Color,Category"; some would suggest to be more verbose on the declaration:
var $belongsTo = array('Color' => array('className' => 'Color', 'conditions' => '', 'order' => '' ), 'Category' => array('className' => 'Category', 'conditions' => '', 'order' => '' ) ); Don't forget to set the other way, on each Model (Category and Color) , telling they hasOne or hasMany Product, to avoid strange behaviour. bye spark On 7/4/06, ShepherdWeb <[EMAIL PROTECTED]> wrote: > > Products (table) belongsTo Colors AND belongsTo Categories. How do I > do this? > > > > > -- [web] http://synapsisdi.com.br [livesets] http://djspark.com.br --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---