Skip to content

Commit

Permalink
Persist null updates on embedded fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kfujita-cohere committed Nov 29, 2023
1 parent 0f898b4 commit 9b9d756
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class PersistentEntityCodec extends BsonPersistentEntityCodec {
v.markDirty()
}

def embeddedUpdate = encodeUpdate(v)
def embeddedUpdate = encodeUpdate(v, createEntityAccess(v), DEFAULT_ENCODER_CONTEXT, true)
def embeddedSets = embeddedUpdate.get(MONGO_SET_OPERATOR)
if(embeddedSets != null) {

Expand Down

0 comments on commit 9b9d756

Please sign in to comment.