yiisoft/yii — pull request #1089 by cebe (2012-08-01 14:48:28+00:00)
Title: fixed reset scope in findBySql and findAllBySql

They did not properly reset scope when critiera is set but `with` is
empty.
Criteria is not necessarily null in else case