You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NH-3317 - Deep load of root entity with <bag> of details entities that contains collection of deeper entities returns wrong number of detail's entities
#1288
Open
nhibernate-bot opened this issue
Oct 12, 2017
· 0 comments
Stan Belkin created an issue — 6th November 2012, 0:53:03:
Deep load of entity with two levels of nested collections brings wrong result when first collection mapped as bag.
In provided example I try to fetch specified blog with it's posts and with it's posts' comments (Blog->Posts->Comments). It works correctly when Blog->Posts mapped as set, but fails when Blog->Posts mapped as bag. I have provided tests for different combinations of bag-set mappings. Also tested different query methods: linq, query over and criteria api.
In my real model I need it mapped as bag, so mapping as a set is not a workarround for me.
Tested with
NH 3.3.1.4000
.NET 4.5
SqlServer 2008 Express
Stan Belkin created an issue — 6th November 2012, 0:53:03:
The text was updated successfully, but these errors were encountered: