yiisoft/yii — pull request #2346 by klimov-paul (2013-04-15 09:57:52+00:00)
Title: Fix for 662: Incorrect Active Record lazy loading of relation through BELONGS_TO relation

Fixes #662: Incorrect Active Record lazy loading of relation through BELONGS_TO relation.

"CActiveFinder::applyLazyCondition()" has been updated to use last relation in the join chain, while composing where condition.