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!

-- 
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