Skip to content

What's the proper way to handle transaction and after hooks? #13322

Answered by Falci
Falci asked this question in Help & Questions
Discussion options

You must be logged in to vote

I found a fix:

  1. move the content of the hook to a static method
  2. use an unmanaged transaction and manually commit it
  3. after the commit call the static method from step 1.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Falci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant