I want to convert this SQL query to CDbCriteria format in Yii framework so I can use it in Yii:
SELECT title FROM project WHERE ((title like 'to %') or (title like ' % to %') or (title like '% to'));
Yiiframework CDbCriteria Description Link is as below:
'to'as the title. You might want to include a condition for this.