Test case "CActiveRecordTest::testHasOneThroughLazy()" has been added to expose issue #662
Test case for issue #662 has been improved.
"CActiveFinder::applyLazyCondition()" has been updated to use last relation in the join chain, while composing where condition.
Issue #662 has been added to CHANGELOG.
Merge pull request #2346 branch '662-lazy-load-through-relation' of https://github.com/klimov-paul/yii

* '662-lazy-load-through-relation' of https://github.com/klimov-paul/yii:
  Issue #662 has been added to CHANGELOG.
  "CActiveFinder::applyLazyCondition()" has been updated to use last relation in the join chain, while composing where condition.
  Test case for issue #662 has been improved.
  Test case "CActiveRecordTest::testHasOneThroughLazy()" has been added to expose issue #662

Conflicts:
	tests/framework/db/ar/CActiveRecordTest.php