[nhusers] Re: superfluous many-to-one update

2009-04-05 Thread graphicsxp
Could someone help with this issue ? I've searched online but I' m under the impression that I've done the right thing, i.e. I put inverse=true in the bag collection .. I'm saving a Post which has 30 Comments and NH does an update 30 times, no update should be required at all On 3 avr,

[nhusers] Re: superfluous many-to-one update

2009-04-05 Thread Jay Chapman
I've been away from NHibernate for a long time, so my recollection may not be 100% accurate here. But I believe the bag may be the issue. Change to use a set instead of a bag and see if that resolves the issue. Do you really want bag behavior, are you just using a bag so you can map to IList?

[nhusers] Re: superfluous many-to-one update

2009-04-05 Thread graphicsxp
Hello, Thanks for that. I can't try right now but I will tomorrow. Yes I'm using bag because I want to map to an IList, Im just more familiar with them, although it would make sense to use a set. However, I don't understand why my issue is related to the fact I'm using a bag ! Is it a bug in