You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to do db transaction operation while working with more than one related model. for example "Order" and "OrderItem" models. For this, I can create a form using a repeater. However, I cannot rollback because Halt and Cancel exceptions are exactly the same. Also only check Halt Exception on EditResource page.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to do db transaction operation while working with more than one related model. for example "Order" and "OrderItem" models. For this, I can create a form using a repeater. However, I cannot rollback because Halt and Cancel exceptions are exactly the same. Also only check Halt Exception on EditResource page.
protected bool $shouldRollbackDatabaseTransaction = false;
This value is false for both Halt and Cancel exception.
Although I specify HasDatabaseTransaction as "true" in Edit Resource, it does not rollback.
In EditRecord.php page, only Halt Exception is checked for RollBack.
Maybe we should update it like this.
Beta Was this translation helpful? Give feedback.
All reactions