Monday, December 29, 2008

Re: GROUP BY bug?

Yes this is normal as far as I'm aware for calculated fields to be
zero indexed, the solution (if required) as you have found is to have
an afterFind() function.

Teknoid has an article about this,
http://teknoid.wordpress.com/2008/09/29/dealing-with-calculated-fields-in-cakephps-find,
I quite like Tarquie's array_walk() one line solution as well.

----
Brett Wilton
http://wiltonsoftware.com

--~--~---------~--~----~------------~-------~--~----~
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: