I found out that recursion seems to work well. There is a query in debug mode 2, but the values are wrong; more precisely, the Comment.author_id is tested with NULL.
Querying for a user only results in all his comments included in the result as supposed. Querying for a news item, which queryies for an 'Author', which therefore queries for comments, that doesn't work. Same with news->comments->author. I think that's because the news refer to users as 'Author' (alias in the query as well) but the author's comments may expect 'User' in some way, I don't know how cake handles this and I'm not able to find out by browsing the code :S Described the whole thing there: http://groups.google.com/group/cake-php/browse_thread/thread/25035ff3c0a24550/efda7db325b09378 But thanks for your help. Didn't know about the last parameter in find() :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
