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
When an ED relationship is one-way, it should be marked as inverse: null, this is essential for mirage models, due to #996.
However, when allowing Mirage to infer the model from ED (so not explicitly defining a mirage model), the inverse: null does not seem to brought along, so the above problem is encountered and the only solution is to define a mirage model.
However, this is troublesome, since this then adds a maintenance burden of keeping the real ED models and mirage models in sync.
The text was updated successfully, but these errors were encountered:
lougreenwood
changed the title
Inferred ember data models don't respect the inverse arg
Infered ember data models don't respect the inverse arg
Feb 16, 2021
However, I assume that mirageJs doesn't set null inverse here since it ignore null value for inverse, so no inverse is detected, so the inverse option is skipped in something like model.hasInverseFor
Bug?
When an ED relationship is one-way, it should be marked as
inverse: null
, this is essential for mirage models, due to #996.However, when allowing Mirage to infer the model from ED (so not explicitly defining a mirage model), the
inverse: null
does not seem to brought along, so the above problem is encountered and the only solution is to define a mirage model.However, this is troublesome, since this then adds a maintenance burden of keeping the real ED models and mirage models in sync.
The text was updated successfully, but these errors were encountered: