Skip to content

GPMONGODB-59: Can't save embedded Domain in another embedded #530

@graemerocher

Description

@graemerocher

Original Reporter: simonrleung
Environment: mongodb 1.8 grails1.3.7
Version: 1.0.0.M6
Migrated From: http://jira.grails.org/browse/GPMONGODB-59

three domains :A B C
class A {
B b
static mapWith = "mongo"
static embedded = ['b']
}

class B {
String name
C c
static mapWith = "mongo"
static embedded = ['c']
}

class C {
String name
static mapWith = "mongo"
}
def c = new C(name: 'i am c')
def b = new B(name: 'i am b', c: c)
def a = new A(b: b)
a.save(flush: true)

in this case the c object can't save.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions