Fix for #425 - Extra instance of root level bean with findIterate() and fetch of OneToMany relationship - Ebean parses the first bean correctly and the rest not

This commit is contained in:
Robin Bygrave committed 2015-09-30 23:35:10 +13:00
1 parent 5e97c3bbbc
commit 19459b71b4
3 files changed
+11 -1

No files matched your search

@@ -433,6 +433,7 @@ public class CQuery<T> implements DbReadContext, CancelableQuery {
} else {
// nextBean set to previously read currentBean
nextBean = currentBean;
request.persistenceContextAdd(nextBean);
// check the current row we have just moved to
if (checkForDifferentBean()) {
return true;