Skip to content

Commit e9883c6

Browse files
akoclaude
andcommitted
docs(microflow-example): make M029 a genuine memory retrieve (owner default)
M029_RetrieveByAssociation is labelled "RETRIEVE by association … instead of database XPath", but its Order_Customer association was owner="both", so a reverse retrieve consumed as a list resolves to a database retrieve (Mendix returns a single object for a reverse owner-both Reference — see #726). That made the example contradict its own description. Switch Order_Customer to owner="default" so the reverse retrieve stays an in-memory AssociationRetrieveSource returning a list, matching the label. The other users of the association (M018/M019/M032) navigate/set from the Order owner side, so default ownership is fine. Full doctype re-checks at 0 errors. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 79d7f8e commit e9883c6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

mdl-examples/doctype-tests/02-microflow-examples.mdl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,14 @@ create non-persistent entity MfTest.ImportRow (
9595
);
9696

9797
-- Create associations
98+
-- Order_Customer is owner="default" so a reverse retrieve-by-association from
99+
-- the Customer side (M029) stays an in-memory AssociationRetrieveSource that
100+
-- returns a list. (A reverse Reference over an owner="both" association resolves
101+
-- to a single object in Mendix, forcing a database retrieve instead — see #726.)
98102
create association MfTest.Order_Customer
99103
from MfTest.Order to MfTest.Customer
100104
type reference
101-
owner both;
105+
owner default;
102106

103107
create association MfTest.Order_Product
104108
from MfTest.Order to MfTest.Product

0 commit comments

Comments
 (0)