Hi folks,

I have a model like the following:

Article hasMany Comment
Comment hasOne User

Now I want to fetch all comments from one article limited by ten.
These ten should be the comments with the most popular users
(User.popular). Is it possible to define the "Article hasMany Comment"
relationship with a limit and an order by his sub-object
"User.popular"?

Bye,
ALex


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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