Reputation: 188
Can someone tell me what will happen in the following scenario? Will one hasMany overwrite the other or will they both be respected?
class Parent {
static hasMany = [attributes: Attribute]
}
class Child extends Parent {
static hasMany = [games: Game]
}
When I attempt to run my app with code similar to above, it fails with a message of "null" which is quite helpful. :)
Upvotes: 0
Views: 261
Reputation: 188
Something else was causing the problem and not the actual code itself. So to provide an answer to my question, both hasMany relationships are supported in the Child.
Upvotes: 2