Hi Chris There is a method model->afterFind() that can be useful in some situations, but rather than fight too hard (which tends to make the code/sql less readable), I let cake return what it wants with the find*() and then reformat the array in the model before returning to the controller.
This does mean you have a new function in your model (that calls the standard find*() then reformats the return array) that has to be called from your controller, but IMHO this is a small price to pay. Most of my non-standard complex find*()s tend to evolve into a sql statement (i.e. model->query($statement)) eventually, so it eases refactoring too. ~GreyCells --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
