Skip to content
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

Linking changes in child entities to their parent entity #114

Open
aszenz opened this issue Jul 12, 2022 · 1 comment
Open

Linking changes in child entities to their parent entity #114

aszenz opened this issue Jul 12, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@aszenz
Copy link

aszenz commented Jul 12, 2022

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.

@aszenz aszenz added the enhancement New feature or request label Jul 12, 2022
@micter59
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants