Make life easier by adding an afterSave() callback to Rating to
populate a field in Article with the average value (and possibly one
for rating_count, but that can easily be done using counterCache).
It's the more efficient way to do it and sorting would then be on the
Article model.
--~--~---------~--~----~------------~-------~--~----~
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