In future, don't refer to all of your models as "model" - make up
names like User, Group, Student, School, whatever you like, just so we
can follow what you are saying easier :)
I am guessing the problem is that one of your models has multiple
associations to the same foreign model, and the problem is that you
don't have different keys for these associations. ie instead of
var $belongsTo = array(
'Parent' => array('className' => 'Parent', 'foreignKey' =>
'modelx_id'),
'Parent' => array('className' => 'Parent', 'foreignKey' =>
'modely_id'),
);
have
var $belongsTo = array(
'Father' => array('className' => 'Parent', 'foreignKey' =>
'modelx_id'),
'Mother' => array('className' => 'Parent', 'foreignKey' =>
'modely_id'),
);
This will keep two associations to the Parent model, but will be
indexed under "Mother" and "Father" respectively.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---