Yeah in the end I made some custom queries to accomplish it.
Yoh what a pain.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.On Tue, Apr 27, 2010 at 10:52 AM, WebbedIT <paul@webbedit.co.uk> wrote:
Your not going to have a massive amount of joy with running
calculations of this nature on the fly so I would be looking at
counterCache and possibly implementing your own afterSave/Delete
callback methods to add COUNT and SUM values direct into your tables
that you can then easily group and order your values by.
HTH
Paul
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment