mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-06 00:04:07 +01:00
Merge pull request #741 from jamesmoey/fix-591
Fix for issue #591 CActiveRecord::getRelated doesn't call afterFind() wi...
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user