ineersa ineersa - 7 months ago 77
MySQL Question

CDbCriteria and mysql USE INDEX()

I got problem with activerecord in yii. So the basic problem is howto define

mySQL criteria as CDbCriteria to pass it to CActivedataprovider.
I didnt find it in api or in code. Maybe someone already had this problem before and can share his solution.

Thank you.


I found the solution. this hack helps with simple selects and indexes.