-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Mage_Core_Model_Abstract: Fix rollback when Throwable is thrown in save/delete method #1483
Conversation
Funny when you are upgrading to LTS and get another bunch of errors :-) thank you Luboš |
See also PR #1442 |
@kiatng Yeah, I seen it. But we should merge this pull request first - less code, less potentional breaking. This is tested on our OpenMage instance and solving real issue, which is described here. |
@Sekiphp First, as you said, you have already fixed this in your project. Others facing similar issue can likewise fix them in their respective projects, no issue there. Second, for maintaining OpenMage code base, we need to fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good change! Thanks for the PR!
nitpick: Please fix the vardoc and delete()
as well while you're at it.
@colinmollenhour Added throws annotation and fixed
|
Description (*)
When you throw some child of
Error
class (orError
class) in_beforeSave
or in_afterSave
methods - Magento do not rollback started transaction and it is provide error:PHP implementation:
Error implements Throwable
Exception implements Throwable
Manual testing scenarios (*)
Consider this code:
Contribution checklist (*)