We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi
I used to be able to do this on a polymorphic model to get to the typekey given as argument in the model definition
const typeKey = this.contactModel.get('options.typeKey');
Currently (6.0.1) these event options is undefined. Did ember data remove that? I'm still using ember and ember-data 3.28.12
@fragmentArray('fragment/contact/contactcomponent', { polymorphic: true, typeKey: 'componentType', ...
The text was updated successfully, but these errors were encountered:
In model-fragments v5, FragmentArray exposed an options property containing the attribute metadata, although it was private API:
FragmentArray
options
ember-data-model-fragments/addon/array/fragment.js
Line 82 in 7ea5717
In model-fragments v6, you can get a fragment array's attribute metadata the same way you would do for any regular attr:
attr
So you could do something like:
modelInstance.constructor.attributes.get('fragmentArrayAttr').options
Sorry, something went wrong.
No branches or pull requests
Hi
I used to be able to do this on a polymorphic model to get to the typekey given as argument in the model definition
Currently (6.0.1) these event options is undefined. Did ember data remove that? I'm still using ember and ember-data 3.28.12
The text was updated successfully, but these errors were encountered: