I did this demo application which shows the problem:
class Face {
Integer width
Integer heigth
Nose nose
}
class Nose {
Integer length
static belongsTo = [face:Face]
}
I want to update an existing Nose instance. First, I load the face which owns the nose:
def face = Face.get(faceId)
I get the corresponding nose to update its length :
def nose = face.nose
nose.length = 10
Now, I want to save the nose:
nose.save(flush:true).
In Grails 1.1 : OK, no problem, nose is saved.
In Grails 1.1.1 : KO: I get this error : groovy.lang.MissingPropertyException: No such property: save for class: Nose.
Doing a face.save() works correctly (cascading to nose which is correctly saved (both in Grails 1.1 and 1.1.1)
I seems that Nose is not recognized as a Domain class.
Please attach an example that reproduces the problem.