Okay, this is completely off-the-cuff, but it should at least get you
started:
class User extends AppModel {
var $hasAndBelongsToMany = array('RelatedUser' => array(
'className' => 'User',
'foreignKey' => 'user_id',
'associationForeignKey' => 'related_user_id',
'joinTable' => 'related_users'
));
}
This assumes you have a join table called related_users, which has 2
columns: user_id and related_user_id.
Hope that helps.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---