- 🇺🇦Ukraine mykola dolynskyi Poltava
Core firing hook_entity_insert() and hook_entity_insert() before transaction is finished may be not so bad, but bad there are no same hooks to be fired after transaction finished and no tables locked!
- First commit to issue fork.
- Status changed to Needs review
over 1 year ago 7:43pm 25 March 2023 - 🇮🇳India kunal_sahu Karnataka
The above patch is committing the transaction and then starting a new one inside the if block that checks if the parent save() method has returned true. This ensures that the post transactional hook is only invoked if the entity save operation was successful.
The moduleHandler is used to invoke the entity_post_transactional_save hook, which should be implemented by any modules that need to perform actions that are not part of the main entity save transaction.Please review. Thanks
- Status changed to Needs work
over 1 year ago 1:36am 26 March 2023 - 🇺🇸United States smustgrave
@kunal_sahu can you explain why your solution is a better approach then the previous patches please.
Added to the remaining tasks decision needs to be made between #23 and #33.
Test coverage will be needed either wya.