Closed Graphmaxer closed 3 months ago
The fix https://github.com/CodeDredd/pinia-orm/commit/4ecf93f43b2dcfb98864f7c791a3d70c8be58a99 for $dirty
is not working with this change
Yeah your change will break $isDirty()
for updating hooks. I need to look into it and think about an solution. Going to check out your branch
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.76%. Comparing base (
ed747cb
) to head (52a8844
). Report is 6 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🔗 Linked issue
Resolves https://github.com/CodeDredd/pinia-orm/issues/1864
📚 Description
When updating an existing entry in a repository, the casts are not applied if the value is a class object with custom
serlize
. Now$getAttributes()
checks if an object has a customserialize
function which is then used.