#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
@@ -399,7 +399,7 @@ public class CQuery<T> implements DbReadContext, CancelableQuery {
}
// add the loadedBean to the appropriate collection of lazyLoadParentBean
lazyLoadManyProperty.addBeanToCollectionWithCreate(lazyLoadParentBean, bean);
lazyLoadManyProperty.addBeanToCollectionWithCreate(lazyLoadParentBean, bean, true);
}
}
@@ -542,7 +542,7 @@ public class CQuery<T> implements DbReadContext, CancelableQuery {
while (hasNext()) {
EntityBean bean = next();
help.add(collection, bean);
help.add(collection, bean, false);
}
updateExecutionStatistics();