有人可以告诉我在以下情况下会发生什么吗?一个 hasMany 会覆盖另一个,还是两者都会受到尊重?
class Parent {
static hasMany = [attributes: Attribute]
}
class Child extends Parent {
static hasMany = [games: Game]
}
当我尝试使用与上面类似的代码运行我的应用程序时,它会失败并显示“null”消息,这很有帮助。:)
有人可以告诉我在以下情况下会发生什么吗?一个 hasMany 会覆盖另一个,还是两者都会受到尊重?
class Parent {
static hasMany = [attributes: Attribute]
}
class Child extends Parent {
static hasMany = [games: Game]
}
当我尝试使用与上面类似的代码运行我的应用程序时,它会失败并显示“null”消息,这很有帮助。:)