#462 - When fetching, collections can get populated with too many entities - Fix

This commit is contained in:
Robin Bygrave
2016-02-13 00:43:47 +13:00
parent 62aca1e77b
commit 8a8b36ec1e
12 changed files with 68 additions and 29 deletions
@@ -24,7 +24,7 @@ public final class SqlTreeNodeManyRoot extends SqlTreeNodeBean {
// being set to the parentBean directly
EntityBean detailBean = super.load(cquery, null, null);
// initialise the collection and add detailBean if it is not null
manyProp.addBeanToCollectionWithCreate(contextParent, detailBean);
manyProp.addBeanToCollectionWithCreate(contextParent, detailBean, false);
return detailBean;
}