In the above code $count is equal to 0 while the row in the table is successfully updated to the new value. I tested this dozens of times and got all the same 0.
If you have noticed that thread is for Yii 1.0. This is why I felt necessary to repost as I use Yii 1.1.6.
Indeed I did! If you have carefully read my message I wrote:
It means, the previous value was different from the one inserted. I make sure beforehand so that the values are different. If same, it does not enter this function. And, again, the value in the database is being altered successfully to a new one, completely new value.
I didn’t you simple update() function on the record itself, because the record data is received from the client and it’s assumed to be new. Here is the beginning of the code.