logOnlyDirty exception/exclude #1064
Unanswered
JeremieBergeron
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, logOnlyDirty will log changes that has actually changed after the update.
It would be nice if we could exclude attributes from it.
What I propose
Adding an argument to logOnlyDirty. This argument would contains a string array of attributes that we want to always logs.
Example (in the tree model)
Why it would be usefull?
Let's suppose we have these two table:
Tree table
id,
name
Leaf Table
id,
tree_id
I wanna get all the logs from tree and all it's leaf.
Currently, this would not be possible if we use logOnlyDirty, since it will not always logs the tree_id. If we could exclude tree_id, we could get the attribute tree_id:
Beta Was this translation helpful? Give feedback.
All reactions