This is really unfortunately. Anyway, I found an old patch/hack for the core and made it work with the latest CakePHP 1.2.4.8284. Because this may help others as well, I put it on my blog: http://schneimi.wordpress.com/2009/09/06/behavior-afterfind-on-model-associations/
On 5 Sep., 16:44, brian <[email protected]> wrote: > Behavior methods of associated models are not triggered, unfortunately. > > On Sat, Sep 5, 2009 at 5:21 AM, schneimi<[email protected]> wrote: > > > Hi, > > > I have created a simple behavior that can serialize (beforeSave) and > > unserialize (afterFind) certain fields of a model. > > > If I do an action directly on the model like $this->Model->find(...), > > I get the unserialized data, but if I catch the Model fields with > > containable like $this->OtherModel->contain('Model');$this->OtherModel- > >>find(...);, the behavior isn't used at all and I only get the > > serialized data. > > > Is this a problem with my model setup, the containable behavior, or a > > general limitation of behaviors? > > > Thx, > > Michael --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
