Quote
This event is raised before an AR finder performs a find call. In this event, the CModelEvent::criteria property contains the query criteria passed as parameters to those find methods. If you want to access the query criteria specified in scopes, please use getDbCriteria(). You can modify either criteria to customize them based on needs.
This event is triggered from inside CActiveRecords with the beforeFind() method. But the criteria object is never passed along (see for example the implementation of query()). So $event->criteria is always null.
I wonder, how this is supposed to be used. I can hardly think of a situation where you would call beforeFind($criteria) manually.

Help














