Hibernate version:
2.0.1.GA
Hi,
I'm stuck with NHibernate because a multi-level parent/childs relationship (bags with invert="true" and lazy="true" and bidirectional) because
- the following exception is thrown during NHibernate's commit :
"collection was modified enumeration operation might not execute"
- in the method :
NHibernate.Impl.Printer.ToString(IEnumerator enumerator, EntityMode entityMode)
- only when I am in debug mode and I don't acess the to second level childs
My relations are the following :
HelpCategory
HelpItem
HelpItemLocalized (causing the issue when HelpItem entities are not proxied)
In this cas and after a lof of debugging in NHibernate core, I discover that :
- the method "NHibernate.Event.Default.FlushEntities(FlushEvent @event)" is loading the second level childs BUT NOT the third level
- the method "NHibernate.Impl.Printer.ToString(IEnumerator enumerator, EntityMode entityMode)" is loading the third level childs INSIDE the do ... while loop, causing the exception...
Any idea ?
Thank you very in advance because I alreadu spent some hours trying to solve this issue...
|