class First {
String text
Second second
static constraints = {
}
}
class Second {
String name
static constraints = {
}
}
当我删除 Second class 对象时,出现如下错误:
Cannot delete or update a parent row: a foreign key constraint fails.
我只想删除 First 内的 Second 实例。