Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Db nested transactions #1645

Closed
Ragazzo opened this Issue Dec 26, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@Ragazzo
Copy link
Contributor

commented Dec 26, 2013

I think we should add into the core 2 $pdoClass strategies to make it possible to work with nested transaction.

  1. TransactionPdoClass (http://www.php.net/manual/en/pdo.begintransaction.php#109753). Also will help in testing with database cleanup.
  2. SavepointPdoClass (http://www.yiiframework.com/wiki/38/how-to-use-nested-db-transactions-mysql-5-postgresql/)

I think this should be implemented to avoid a lot of bugs/questions about how to handle transactions. This feature was really needed in Yii1 by default.

@Ragazzo

This comment has been minimized.

Copy link
Contributor Author

commented Dec 26, 2013

Also $pdoClass property should be added to Yii2 as in Yii1 CDbConnection.

@Ragazzo Ragazzo referenced this issue Feb 4, 2014

Closed

Improving fixture controller #2316

3 of 3 tasks complete
@Ragazzo

This comment has been minimized.

Copy link
Contributor Author

commented Feb 10, 2014

Related with #127

@qiangxue qiangxue closed this in bea9e3f Feb 16, 2014

@cebe cebe added this to the 2.0 Beta milestone Feb 16, 2014

qiansen1386 pushed a commit to qiansen1386/yii2 that referenced this issue Mar 9, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.