I am trying to update a row in the database that has a certain value as ‘position’ in Yii.
Now I can use the update() method. But this does not allow me to specify a condition. I am trying to avoid CDbCriteria and native sql to keep my code clean. Does anyone has an advice to update a single record in yii with a condition?
Thanks in advance,
Did you see the method
updateAll?