mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
#2748 - Fix partially loaded bean scenario with .setDisableLazyLoading(true) .setBeanCacheMode(CacheMode.PUT) // force query to hit database
This commit is contained in:
1 parent
48404fc85d
commit
ac1e1757e8
3 files changed
+46
-2
No files matched your search
@@ -365,7 +365,7 @@ class SqlTreeLoadBean implements SqlTreeLoad {
|
||||
* context we need to check if it is already contained in the collection.
|
||||
*/
|
||||
final boolean isContextBean() {
|
||||
return localBean == null;
|
||||
return localBean == null || queryMode == Mode.LAZYLOAD_BEAN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user