Can you post hbm files and code?  I've seen this when saving the
parent item, but one of the child items was not saved yet, I believe
you just have to save the child item first (i.e. the unsaved transient
instance).  Then save the parent.

On Aug 27, 7:33 pm, Noam <[email protected]> wrote:
> Guys, any one can help with that?
>
> On Aug 27, 12:37 pm, Noam <[email protected]> wrote:
>
>
>
> > Hi, I have many 2 one collection Bag that i am using. I have set the
> > cascade to be DeleteOrphan but somehow when i am saving the parent he
> > throw an exception "object references an unsaved transient instance -
> > save the transient instance before flushing".
>
> > I was expecting him NOT to save the collection since i have cascade
> > only the DeleteOrphan and not saveupdate. BTW if i set the cascade to
> > be none then its work fine but i need the cascade deleteorphan
>
> > is this a bug?
>
> > i am using Nhibernate 3.0 the latest from the trunk.
>
> > Noam- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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