Hi, I've tried LinkableBehavior from https://github.com/Terr/linkable with great pleasure. But there's one thing I cannot get my head around. I'm using the group option to calculate the average by including fields of the type 'fields' => array('AVG(Car.price) AS price_avg') with 'group' => array(''Car.make_id'). This works like a charm, but... In my cars- table I also have a field called timestamp, and I'd like to have car price avg based on the x newest prices only, e.g x = 10, 20 etc.
By looking in linkable.php, 'order' and 'limit' - as I would normally use - don't seem to be valid options (and they don't work inside the link, either). Does anybody have any suggestions on how to solve my problem? Cheers, Mikkel. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
