How should i delete the child object in a hasOne relationship in grails for eg:
class Face {
static hasOne = [nose: Nose]
}
class Nose {
Face face
static belongsTo= Face
}
i tried deleting the child object by two ways
1. face.nose.delete()
2. nose.delete()
I always get the same exception Deleted object resaved by cascade in both the ways. And one more Do i have any dynamic methods (like addTo and removeFrom for hasMany) for hasOne? Any help?Thanks