Model::afterFind() not called for associated models

2007-12-18 Thread [rob desbois]
Hi, I'm trying to design my app to have fat models and skinny controllers where possible but having a problem with one particular part of that: retrieval of associated models. I have models Foo and Bar, where (Foo hasOne Bar) and (Bar belongsTo Foo), which map to DB tables 'foos' and 'bars'

Re: Model::afterFind() not called for associated models

2007-12-18 Thread Andrew Assarattanakul
From my experiences it is best to not touch the afterFind function as much as you can because you will run into problems down the line with associations and from calling a find with different parameters in different parts of the controller(s). Unless it is something that must be done for all