yiisoft/yii — pull request #741 by jamesmoey (2012-05-23 03:35:11+00:00)
Title: Fix for issue #591 CActiveRecord::getRelated doesn't call afterFind() wi...

...th `through` relation

It was only expecting joinTree only contain 1 child, if you use through relation, that might not be true. Therefore, use a loop to go though the children and call afterFind on them.