Replies: 1 comment
-
Yeah, something that should be handled by Lucid. I do not have a good answer right now. However, I will turn this into an issue and work on it later |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have some JSON fields in my database and I would like to use the
prepare
andconsume
hooks to convert this JSON data into a custom class in my codebase.However, the change detection in Adonis does not pick up on any changes inside this class. The class instance doesn't change, only internal data changes, so Adonis seems to consider them equal and doesn't update the column in the database.
Can I do something (set a property on the entity, or perhaps provide a getter in
MyClass
) to tell Adonis when the value has changed so it gets saved?Beta Was this translation helpful? Give feedback.
All reactions