From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-17 23:11:50
|
[ http://216.121.112.228/browse/NH-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo reopened NH-1847: ----------------------------- > EvictVisitor fix for non session associated collections > ------------------------------------------------------- > > Key: NH-1847 > URL: http://216.121.112.228/browse/NH-1847 > Project: NHibernate > Issue Type: Patch > Components: Core > Affects Versions: 2.0.0.GA, 2.0.1.GA, 2.1.0.Alpha3 > Reporter: Gediminas Guoba > > Hello, > Could you please apply a change to NHibernate.Event.Default.EvictVisitor class > method private void EvictCollection(IPersistentCollection collection) > and change line: > if (ce.LoadedPersister != null && ce.LoadedKey != null) > to > if (ce != null && ce.LoadedPersister != null && ce.LoadedKey != null) > Issue: > I have an object "A" whitch was reassociated with session. This object has a collection. When I trying to Evict object "A" from session I'm getting exception "Object is not set..." because collection is not reassociated with the session (I'm not sure if it is possible, because Lock method only allows proxy entities). > Thanks in advance, > Geddis -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |