Ok, now you need to find what commit casused this behavior. Best Regards, Alex
2013/2/13 Ricardo Peres <[email protected]> > Alex, > > I got the previous version but the problem still occurs. > > RP > > > On Tuesday, February 12, 2013 11:57:27 AM UTC, Alexander I. Zaytsev wrote: > >> I think it is a fix for NH-3058 causing this. Can you please check before >> and after this commit? https://github.com/**nhibernate/nhibernate-core/** >> commit/**b26e622df1f834c69c9086e70f212b**c460a5ad8e<https://github.com/nhibernate/nhibernate-core/commit/b26e622df1f834c69c9086e70f212bc460a5ad8e> >> >> Best Regards, Alex >> >> >> 2013/2/12 Ricardo Peres <[email protected]> >> >> Hello, Alex! >>> >>> Just updated my Nuget package to 3.3.3 CR1, and it still passes my >>> tests. It must have been something introduced after that. >>> >>> RP >>> >>> On Tuesday, February 12, 2013 12:19:59 AM UTC, Alexander I. Zaytsev >>> wrote: >>> >>>> Hi Ricardo, >>>> >>>> Can you please check it it works in 3.3.3 CR1? >>>> >>>> Best Regards, Alex >>>> >>>> >>>> 2013/2/12 Ricardo Peres <[email protected]> >>>> >>>> Well, not really... I have one project with NHibernate 3.3.2 (from >>>>> Nuget) where the problem does not occur, and another using trunk where it >>>>> does. >>>>> This also passes: >>>>> >>>>> Debug.Assert(o is IProxy); >>>>> >>>>> Debug.Assert(o.Customer is IPr****oxy); >>>>> >>>>> Debug.Assert(o.Customer == >>>>> **ses**sion.**GetSessionImplementation(**).**PersistenceContext.Unproxy(**c))**; >>>>> >>>>> >>>>> and this fails: >>>>> >>>>> >>>>> Debug.Assert(o.Customer is INH****ibernateProxy); >>>>> >>>>> >>>>> It seems to me that session.Load<T> is now returning an unproxied >>>>> instance. However, its type is CustomerProxy. >>>>> Like I said, I'm not sure this is a bug or not... but it seems so, >>>>> since there are two instances managed by NHibernate who point to the same >>>>> record of the same entity. >>>>> >>>>> RP >>>>> >>>>> >>>>> On Monday, February 11, 2013 6:17:10 PM UTC, Oskar Berggren wrote: >>>>> >>>>>> I don't know anything specifically about this. Can you pinpoint the >>>>>> exact revision where the behavior changed? >>>>>> >>>>>> /Oskar >>>>>> >>>>>> >>>>>> 2013/2/10 Ricardo Peres <[email protected]>: >>>>>> > Hi, Oskar! >>>>>> > >>>>>> > I just came across something weird with the latest trunk version: >>>>>> > >>>>>> > Customer c = session.Load<Customer>(1); //Customer is lazy, so >>>>>> a proxy >>>>>> > is returned >>>>>> > Order o = session.Get<Order>(1); //Order is lazy, >>>>>> but I'm >>>>>> > loading it explicitly >>>>>> > Debug.Assert(c is IProxy); //OK >>>>>> > Debug.Assert(o is IProxy); //OK >>>>>> > Debug.Assert(o.Customer is IProxy); //OK >>>>>> > Debug.Assert(o.Customer == c); //failure >>>>>> > >>>>>> > In recent versions (3.x), there was no failure, I have just >>>>>> checked. All >>>>>> > entities are lazy and the Customer property is mapped as NoProxy >>>>>> (which is a >>>>>> > proxy anyway). >>>>>> > My question is: shouldn't the instance returned by Load<T> and the >>>>>> Customer >>>>>> > property be the same? >>>>>> > I'm not sure this is an error, but it is a change from previous >>>>>> versions - I >>>>>> > had this Assert since always, and it never threw. >>>>>> > >>>>>> > Thanks! >>>>>> > >>>>>> > RP >>>>>> > >>>>>> > -- >>>>>> > >>>>>> > --- >>>>>> > You received this message because you are subscribed to the Google >>>>>> Groups >>>>>> > "nhibernate-development" group. >>>>>> > To unsubscribe from this group and stop receiving emails from it, >>>>>> send an >>>>>> > email to nhibernate-development+**unsubsc****[email protected]. >>>>>> >>>>>> > For more options, visit https://groups.google.com/**grou**** >>>>>> ps/opt_out <https://groups.google.com/groups/opt_out>. >>>>>> > >>>>>> > >>>>>> >>>>> -- >>>>> >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "nhibernate-development" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to nhibernate-development+**unsubsc**[email protected]. >>>>> For more options, visit >>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out> >>>>> . >>>>> >>>>> >>>>> >>>> >>>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "nhibernate-development" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to nhibernate-development+**[email protected]. >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > > --- > You received this message because you are subscribed to the Google Groups > "nhibernate-development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "nhibernate-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
