You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: bulk-create OData navigation associations between external entities (mendixlabs#143)
After all entities are created, walk every entity type's nav properties
and emit a Mendix association for each one whose target also exists in
the project. The association uses Rest\$ODataRemoteAssociationSource
with the OData property name in RemoteParentNavigationProperty.
For TripPin this produces 8 associations (Friends, Photo, From, To,
Airline, Photos, PlanItems, Airline) — matching Studio Pro's reference.
Fixes:
- ContainsTarget=true nav properties (e.g. Person.Trips) are skipped:
contained entities are reached through the parent, not by association
(CE0001 fix).
- Persistable→non-persistable associations are skipped (Mendix forbids
them; Studio Pro doesn't create them either when target is stored as
Rest\$ODataEntityTypeSource).
- Association name collisions with entity names get a numeric suffix
(e.g. Trip.Photos → Photos_2 to avoid clash with the Photos entity)
(CE0065 fix).
- Defaults for CreatableFromParent/UpdatableFromParent set to true.
Writer/parser additions:
- serializeAssociation now emits Source as Rest\$ODataRemoteAssociationSource
carrying RemoteParentNavigationProperty, Navigability2, and Creatable/
UpdatableFromParent/Child flags.
- parseAssociation round-trips the same fields.
mx check: 17 → 7 errors, all remaining are CE6630 from unparsed OData
Capabilities annotations (Phase B-3).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments