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 have a simple use case of logging an order with multiple order lines.
When changing the order line the order entity is not modified and no log is generated for it. Only the log for the order line entity is generated.
How can I query every change to an order + order lines using the order number only. So for every transaction i should get the changes for both order and orderline.
The diff for the order line entity doesn't have the order information to reference it.
The general question is how to link changes in child entities to their parent when the parent entity remains unchanged.
The text was updated successfully, but these errors were encountered:
Hello. Same problem for me.
The solution i use, is to put a "modification date" on the parent entity (order entity in your case), and modify it at the same time.
Then, if you display the audit by hash, both modifications are displayed.
That's really not perfect, but I didn't find better for now.
I have a simple use case of logging an order with multiple order lines.
When changing the order line the order entity is not modified and no log is generated for it. Only the log for the order line entity is generated.
How can I query every change to an order + order lines using the order number only. So for every transaction i should get the changes for both order and orderline.
The diff for the order line entity doesn't have the order information to reference it.
The general question is how to link changes in child entities to their parent when the parent entity remains unchanged.
The text was updated successfully, but these errors were encountered: