I'm trying to modify model data before it gets sent to the controller
by using the afterFind callback.

I am able to modify the data in the model whose find method has been
called however any associated models do no have their afterFind
called.

For example I has a Post with some Comments, I ask to view post # x
with all its comments.  The afterFind for the Post model is called but
not for any of the comments.  Is this expected behavior? How would I
go about modifying the comments before they are sent to the
controller?

In case it helps I'll give some context into what I'm trying to do:

My tables are set up like so:
posts
posts_en
posts_fr
comments
commets_en
comments_fr

The '_en' and '_fr' are translated tables have the same primary key as
their and only fields that need to be translated.

I am taking info from the posts_[lang] table and putting that info
into the Post model before the model data is sent to the controller.

Thanks to anyone who responds.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to