Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infered ember data models don't respect the inverse arg #2123

Open
lougreenwood opened this issue Feb 16, 2021 · 1 comment
Open

Infered ember data models don't respect the inverse arg #2123

lougreenwood opened this issue Feb 16, 2021 · 1 comment

Comments

@lougreenwood
Copy link

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.

@lougreenwood 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
@lougreenwood
Copy link
Author

Some research for fixing:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant