I'm having problems with NHibernate throwing AssertionFailure exception with message "no collection snapshot for orphan delete" at NHibernate.Impl.CollectionEntry.GetOrphans.
This exception is being thrown after I call NHibernate.Impl.SessionImpl.Find, that is I'm searching in the Session. The real problem is that we cannot reproduce this error in out test environment, so we don't know any possible reasons of this happening.
The only difference in this case is that we call Session.SaveOrUpdate (because we need identifiers of new records to be populated) and then we are doing some manipulations with collections of objects in this session (with no deletes!), after which we inialize and commit HNibernate transaction.
If no likely reason is know, could someone at least tell what does really SessionImp.SaveOrUpdate do and what is allowed to do after this call?
|