Closed zombeer closed 1 year ago
PR attached (: https://github.com/MasoniteFramework/orm/pull/832
Related to #759
Related to #759
Yep. But I suggest to implement non breaking change though.
Also addressed in https://github.com/MasoniteFramework/orm/pull/830
This has been fixed in #830
closing then :)
Describe the feature as you'd like to see it In my code I rely on models casts for some fields. As far as I can see it's implemented everywhere in model methods, but querybuilder ones. It would be really nice to have consistent behavior over all Model/QueryBuilder methods. In order for change to be non breaking I suggest to add
cast=False
kwarg toQueryBuilder.update()
to preserve current state of things by default.What do we currently have to do now? To be exact: I have to call
Model.update(..)
with some uglyjson.dumps(...)
inside while havingjson
casts enabled in model.