class Owner {
static hasMany = Dog
}
class Sitter {
static hasMany = Dog
}
class Dog {
static belongsTo = [Owner, Sitter]
}
My question is: If I create a Dog instance D, a Owner instance O, a Sitter instance S and associate D with both O and S, what happens to O when S gets deleted? Would O still have D? Since it's a cascade-delete, both S and D would get deleted, right? When what happens to O? Would it still have D?