Result of update command

I'm updating some table and want to know how much rows were affected. Is there any wrapper over mysql_affected_rows? I didn't notice such action in the DB connection or CDbCommand

I think the execute() method of CDbCommand will return how many rows were affected by your update.

No, I consulted the docs, this method doesn’t return anything: http://www.yiiframew…Command#execute

Read it careful. ;)

AH… I read only description. read it several times and didn't even look at the return type… Thanks!