Hello everybody,
i think this bug allready exists in NHibernate:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5871
I have transform the patch to nhibernate (C#).
In my opinion this patch will fix the problem in nhibernate, too.
Code: NHibernate.Engine.TwoPhaseLoad [LINE: ~129] (Version 3.1.0GA)
object proxy = persistenceContext.GetProxy(entityEntry.EntityKey);
if (proxy != null)
{
var lazyInitializer = ((INHibernateProxy)
proxy).HibernateLazyInitializer;
if (lazyInitializer.IsReadOnlySettingAvailable){
// there is already a proxy for this impl
// only set the status to read-only if the proxy is read-only
isReallyReadOnly = lazyInitializer.ReadOnly;
}
}
greets pcon!