#610 - ManyToOne returns wrong ID value (prior ManyToOne with inheritance and null value). Regression introduced in 7.2.1.

This commit is contained in:
Robin Bygrave
2016-03-22 09:46:12 +13:00
parent 0d8146d453
commit 90f786babd
2 changed files with 30 additions and 7 deletions
@@ -34,6 +34,8 @@ class AssocOneHelpRefInherit extends AssocOneHelp {
// read discriminator to determine the type
InheritInfo rowInheritInfo = inherit.readType(ctx);
if (rowInheritInfo == null) {
// ignore the id property
property.targetIdBinder.loadIgnore(ctx);
return null;
}