Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field mapping of a field of an embedded object is not taken into account if value of this field is unset #150

Open
ptitcoutu opened this issue Oct 14, 2020 · 1 comment

Comments

@ptitcoutu
Copy link

In org.grails.datastore.mapping.mongo.engine.codecs.PersistentEntityCodec line 264 there's a code which should unset a field but the code use the property name of the entity instead of the field name of the mapping defined in GORM
image

So the code should use prop.mappedForm.targetName instead of prop.name

The code is the same in the most recent version of the class so the issue is still here

Context :
Grails : 4.0.0
GORM : 7.0.0.RELEASE
Groovy : 2.5.6

@puneetbehl
Copy link
Contributor

Please feel free to send a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants