From: Paul H. <pha...@us...> - 2005-03-26 15:33:41
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Collection In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11427/nhibernate/src/NHibernate/Collection Modified Files: PersistentCollection.cs Log Message: Fix as per HB-1466 Index: PersistentCollection.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Collection/PersistentCollection.cs,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** PersistentCollection.cs 14 Mar 2005 18:51:49 -0000 1.23 --- PersistentCollection.cs 26 Mar 2005 15:33:32 -0000 1.24 *************** *** 492,499 **** public void ForceInitialization() { ! if( initializing ) throw new AssertionFailure("force initialize loading collection"); ! if( session == null ) throw new HibernateException("collection is not associated with any session"); ! if( !session.IsConnected ) throw new HibernateException("disconnected session"); ! if( !initialized ) session.InitializeCollection( this, false ); } --- 492,502 ---- public void ForceInitialization() { ! if (!initialized) ! { ! if( initializing ) throw new AssertionFailure("force initialize loading collection"); ! if( session == null ) throw new HibernateException("collection is not associated with any session"); ! if( !session.IsConnected ) throw new HibernateException("disconnected session"); ! session.InitializeCollection( this, false ); ! } } |