yiisoft/yii — pull request #1042 by creocoder (2012-07-27 14:12:28+00:00)
Title: Fix the beforeFind() behavior of the framework

After https://github.com/yiisoft/yii/commit/3a12a9a5853d2f690b8b7abb300f604cf3eb9b7f beforeFind() behavior was broken. So many extensions and models from version 1.1.10 and lower did not work more with 1.1.11.

Hidden $criteria param in CActiveFind::beforeFind() never worked and, moreover, can not work. This is why comment was removed.

$this->getDbCriteria() from beforeFind() always been available in the version 1.1.x. So i make unit tests to ensure future fixes dont break this more.