That is expected. The other sesson soen't have the object in its 1st-level-cache, so it doesn't know whether its dirty or not.
A solution would be using the same approach for the session-stored object that ARDataBinder uses. Look into it and if it works, submit a patch ;-) -Markus 2009/8/6 clanger <[email protected]> > > How can I create an object using .Find() method, detach the object > using .Evict() and store it in HttpContext.Session, then sometime > later re-join the object to the current ISession? > > Currently, when I call .SaveAndFlush() on the object I am getting > updates for every field and for every item in related HasMany > collections. > > I'm assuming this is because the object has lost the state of the > previous values. Debugging revealed the previous values collection to > be null in the OnFlushDirty callback. > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
