The setup:

Models:
 - User habtm Friend (className => User)
 - UsersUser habtm Tags

Tables:
 - users: id, name
 - users_users: id, user_id, friend_id
 - tags_users_users: tag_id, users_user_id
 - tags: id, name


Query and result:

$this->User->id = 1;
$user = $this->User->find();

$user =>
  [User] = array('id','name')
  [Friend] = array(
     [0] => array(
        'id','name',
        [UsersUser] = array(id,user_id,friend_id)
                    )
                       )

Problem:
 - Why doesn't $user[Friend][UsersUser][Tag] exist?
 - Querying $this->User->UsersUser->find() returns an array with
[UsersUser] and [Tag]
 - Is it even possible to have an association in the 'auto-with'?

Thanks for any help!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to