yiisoft/yii — pull request #2113 by tomtomsen (2013-02-14 13:59:59+00:00)
Title: AR should apply LIMIT 1 when lazy loading HAS_ONE relations

Doesn't seem to break the framework/db unit tests. (Some got skipped)
But your test case works fine. refs #1857