Monday, November 29, 2010

afterFind and associated models.

Hey

I want my queries to run afterFind's on associated models rather than just the primary model, this doesn't work at the moment. See here for more info: https://trac.cakephp.org/ticket/2056

I have this in one of my models: http://pastie.org/private/k32ewbjcqe8ybd8wwmuebq. It does the job perfectly when using $this->Fabric->find('all') for example.

I now want the exact same thing on this query:

http://pastie.org/private/sktaycvqoiyt1adzhkozew

But unfortunately it won't run the afterFind :(

I don't really want to edit my dbo_source.php file with an unstable patch, any solutions or ideas would be greatly appreciated.


Kind Regards
 Stephen

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
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: