Updating an entity using wrap(existing).assign({...new_contents})
does not update its BlobType
properties.
#1406
Labels
bug
Something isn't working
Thanks for this excellent lib! I found something that may be a bug.
Describe the bug
Updating an entity using
wrap(existing).assign({...new_contents})
does not seem to update itsBlobType
properties. The below code is a representation of what goes on in the backend i'm working on. I amwrap
-ing the existing entity and using.assign()
to assign the new properties to it. Obviously this can be simplified if you only want to assign a newcontents
property usingbook.contents = new_contents
, but I also want it to update the other properties that my entity has so I'm usingwrap().assign()
. Updating thename
property through this mechanism (which is just a varchar) seems to work fine.Be sure to let me know if I'm misunderstanding something here!
To Reproduce
Expected behavior
I would expect the
BlobType
buffer to contain the new value.Versions
The text was updated successfully, but these errors were encountered: