So I've set up a users model that I want to link to other users. I've
initialized the database table and created the corresponding variable
in the user model.
var $hasAndBelongsToMany = array('User' => array('className' =>
'User',
'joinTable' => 'users_users',
'foreignKey' => 'source_id',
'associationForeignKey'=> 'target_id'
));
My controller is a simple scaffold, but it has very strange output
when I view a user. It creates several rows of junk as show below. I'm
thoroughly confused. Ideas?
Related Users
Id Email First Name Last Name Created Modified
Language Id
Password Account Id Actions
2 2 2 2 2 2 2 2 2 View
Edit Delete
b b b b b b b b b View
Edit Delete
B B B B B B B B B View
Edit Delete
B B B B B B B B B View
Edit Delete
2 2 2 2 2 2 2 2 2 View
Edit Delete
2 2 2 2 2 2 2 2 2 View
Edit Delete
2 2 2 2 2 2 2 2 2 View
Edit Delete
1 1 1 1 1 1 1 1 1 View
Edit Delete
1 1 1 1 1 1 1 1 1 View
Edit Delete
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---