the User model is not directly associated to Articles, but
via the Author model.
Articles have a foreign "author_id", same does the User model.
When i add an association in the Article model between User and
Article like this:
(i could do this on the fly with bind model also)
'User' =>
array('className' => 'User',
'foreignKey' => 'author_id',
'conditions' => '',
'fields' => '',
'order' => '',
'counterCache' => ''
),
i get this join condition:
`Article`.`author_id` = `User`.`id`
which leads to empty results. The field "id" is automatically used by
cake.
It should read:
`Article`.`author_id` = `User`.`author_id`
which doesn'T
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---