Item model:
var $hasMany = array(
'SourceSwap' => array(
'className' => 'SwapItem',
'foreignKey' => 'org_id',
),
'DestSwap' => array(
'className' => 'SwapItem',
'foreignKey' => 'swap_id',
),
);
SwapItem model:
var $belongsTo = array(
'SourceItem' => array(
'className' => 'Item',
'foreignKey' => 'org_id',
),
'DestItem' => array(
'className' => 'Item',
'foreignKey' => 'swap_id',
),
);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---