ineersa ineersa - 1 year ago 100
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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download