locks mysql

I need to design an application allowing people to transfer and withdraw money. How can I lock mysql table rows during this transfer and withdraw using yii?

As far as I know Yii has no support for row locking. You can however wrap your queries in CDbTransaction’s and generate the SQL commands for MySQL yourself using createCommand.

Innodb as storage engine + Enable transactions for those queries.