问题
I have a domain class called Form
which has an embedded field called union
of type Organization
which is embedded. Organization
has the field createdByUser
. User has a field organization
of type Organization
added by AST transformation.
So, whenever i try to save a Form
object, it tries to change the user reference by createdByUser
to an organization id of 1
for mysterious reasons.
来源:https://stackoverflow.com/questions/30714307/grails-mongo-gorm-mysteriously-thinks-a-object-referenced-by-an-embedded-fiel