yii-simple-transaction

Simple way to use transaction in Yii framework
3 followers

Yii-TR

Simple class to use transaction in Yii framework

Setup:

copy transactionFactory.php under protected/components folder

Usage:

transactionFactory::beginTransaction();
transactionFactory::commit();
transactionFactory::rollback();

Why:

  • If you work with more than one model and need transaction in them,it can be useful to write less code.
  • It helps you to check transaction status.

Others:

Be the first person to leave a comment

Please to leave your comment.

Create extension