{"action":"opened","issue":{"url":"https://api.github.com/repos/jagregory/fluent-nhibernate/issues/296","labels_url":"https://api.github.com/repos/jagregory/fluent-nhibernate/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/jagregory/fluent-nhibernate/issues/296/comments","events_url":"https://api.github.com/repos/jagregory/fluent-nhibernate/issues/296/events","html_url":"https://github.com/jagregory/fluent-nhibernate/issues/296","id":54104915,"number":296,"title":"NHibernate 4 update - Cannot simultaneously fetch multiple bags","user":{"login":"nomoresocks","id":10505247,"avatar_url":"https://avatars.githubusercontent.com/u/10505247?v=3","gravatar_id":"","url":"https://api.github.com/users/nomoresocks","html_url":"https://github.com/nomoresocks","followers_url":"https://api.github.com/users/nomoresocks/followers","following_url":"https://api.github.com/users/nomoresocks/following{/other_user}","gists_url":"https://api.github.com/users/nomoresocks/gists{/gist_id}","starred_url":"https://api.github.com/users/nomoresocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomoresocks/subscriptions","organizations_url":"https://api.github.com/users/nomoresocks/orgs","repos_url":"https://api.github.com/users/nomoresocks/repos","events_url":"https://api.github.com/users/nomoresocks/events{/privacy}","received_events_url":"https://api.github.com/users/nomoresocks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-12T20:51:20Z","updated_at":"2015-01-12T20:51:20Z","closed_at":null,"body":"I'm updating my current codebase to use NHibernate 4, and I've run into an issue with the fluent configuration on the current upgrade.  I have the following call to configure my mappings:\r\n\r\n    ISessionFactory _SF = Fluently.\r\n            Configure(configuration).\r\n            Cache(x => x.UseSecondLevelCache().UseQueryCache().ProviderClass<NHibernate.Caches.SysCache.SysCacheProvider>()).\r\n            Mappings(m =>\r\n            {\r\n                m.FluentMappings.AddFromAssemblyOf<VenueLocationMap>().Conventions.Add(DefaultCascade.None());\r\n                m.AutoMappings.Add(AutoMap.AssemblyOf<SMSGroup>(new AutomappingConfiguration())\r\n                    .Override<Communication>(x =>\r\n                        {\r\n                            x.References<Communicator>(y => y.PreviousMessage).Cascade.None();\r\n                            x.References<Communicator>(y => y.CurrentMessage).Cascade.None();\r\n                        })\r\n                    .Conventions.Add(DefaultCascade.All())\r\n                    );\r\n            }).CurrentSessionContext<HybridWebSessionContext>().BuildSessionFactory();\r\n\r\nWhen I run that, I get a `QueryException` stating `Cannot simultaneously fetch multiple bags`.  I'm sure this is the result of some kind of deprecation that occurred in NHibernate 4, but it's not clear what transition should be made to make my mappings work.  What is the recommended course of action for this upgrade?"}}