Merge pull request #741 from jamesmoey/fix-591

Fix for issue #591 CActiveRecord::getRelated doesn't call afterFind() wi...
This commit is contained in:
Qiang Xue
2012-08-06 13:35:38 -07:00

View File

@@ -167,8 +167,9 @@ class CActiveFinder extends CComponent
$this->_joinTree->lazyFind($baseRecord);
if(!empty($this->_joinTree->children))
{
$child=reset($this->_joinTree->children);
$child->afterFind();
foreach($this->_joinTree->children as $child) {
$child->afterFind();
}
}
$this->destroyJoinTree();
}