Damnit.  Why do I always figure these things *immediately* after
posting them, no matter how many hours of headscratching they've
caused?
Reading through my own post I noticed that my afterFind method was
written to process the data in a way that only lets it run when
findAll() is used on that method.


if(isset($results[$i]['Award']['title']))
     $results[$i]['Award']['title'] =
unserialize($results[$i]['Category']['title']);

Will work just fine on the model, but when the data comes in the form
$results[n][Category][Award]     *[n]*    [title]

it borks, for obvious reasons.  I've now coded it to check if it's a
multidimensional array and act accordingly.

Sorry for wasting your time ;)


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

Reply via email to