-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Model.relatedTypes documentation incorrectly describes classes instead of strings #8020
Comments
@Elawphant would you be able to send in a doc fix for that? Would love to get that fixed |
Give me the link, I would gladly do that. |
@Elawphant you bet. Click on https://api.emberjs.com/ember-data/4.4/classes/Model/properties/relatedTypes?anchor=relatedTypes, browse to where it is defined and you should be able to edit the source |
It looks like the docs for |
@runspired I believe so, too. |
fixed in #8440 (thanks @Shubhi-73). I'll leave this open for |
fixed as part of #9292 |
There is a wrong example in api docs https://api.emberjs.com/ember-data/4.4/classes/Model/properties/relatedTypes?anchor=relatedTypes
Doc shows in the example that this method returns the related model classes, while in reality it returns their small-case names.
See the correction below.
instead it returns
['user', 'post']
The text was updated successfully, but these errors were encountered: