FIX: disableLazyLoading was not checked correctly (#1528)

This commit is contained in:
Roland Praml
2018-11-03 16:23:27 +13:00
committed by Rob Bygrave
parent 0f9c98964e
commit 13a5511318
@@ -54,7 +54,7 @@ class AssocOneHelpRefInherit extends AssocOneHelp {
// for inheritance hierarchy create the correct type for this row...
boolean disableLazyLoading = ctx.isDisableLazyLoading();
Object ref = desc.contextRef(pc, ctx.isReadOnly(), disableLazyLoading, id);
if (disableLazyLoading) {
if (!disableLazyLoading) {
ctx.register(property.name, ((EntityBean) ref)._ebean_getIntercept());
}
return ref;