Articles Posted in the " Yii beginTransaction " Category

  • Yii2 Transaction

    Transaction represents a DB transaction. Yii 2.0 have this feature. we can use beginTransaction function before every query.


  • CDbTransaction  In Yii

    CDbTransaction In Yii

    To use transaction, do like the following: Using transaction function commit and rollback, We can avoid the errors on db insert. beginTransaction With Model $transaction = Yii::app()->db->beginTransaction(); try { $model=new User; ............... ............... $model->save(); […]