The CDbCriteria class let’s you customize queries through an object. The first thing you should do to become more comfortable with Active Record when using the Yii framework is master usage of CDbCriteria.
This is an excerpt from Chapter 8, “Working with Databases,” of “The Yii Book”.
Continue Reading...