EntityA has a ManyToOne relationship to EntityB which uses the property-ref 
attribute.
In addition, the relationship is also mapped as cascade="none" and readonly.

When I try and save a new instance of EntityA:

EntityA a = new EntityA();
a.EntityB = new EntityB() { propertyRef = 33 };
session.Save(a);

I get "object is an unsaved transient instance - save the transient 
instance before merging".

In NHibernate 2.1 this worked as expected.

What am I missing?


-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/hsLkjIfdUYQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to