OOM error while trying to validate a change from principal to dependent
ddewaleffe opened this issue · 4 comments
Hmm. What was the cardinality on the other end of the association? Was it unidirectional or bidirectional?
Relation is bidirectional. Other end is *.
If I try changing to NotSet, or NotApplicable there is no issue. Feedback is immediate with no change in model. Only when trying to change to from Principal to Dependent [I would think having the two sides defined as dependent does dot make much sense] is the OOM error happening.
I can send you the the full efmodel file if needed.
Found it. You're right that it doesn't make sense to set both ends as dependent ... but the designer changes the other end when you set one end. Unfortunately, it then runs a verification to ensure that the cardinalities and roles are appropriate for each other, and sets the roles back when they're not. More unfortunately, that can trigger a bad recursion that blows the stack, causing an OOM error.
Manually changing roles is only appropriate in 1-1 and 0..1-0..1 cardinalities; otherwise, it's pretty well defined what those should be. So I've now hidden the ability to change roles except in those two circumstances. That change is now published in v1.2.6.20.
Thanks, as always, for the catch!
I confirm that the 1.2.6.20 version fixes this.
Thanks a lot.