Open ngouy opened 6 years ago
I hear this but it sounds like this should be a regular ember-data relationship, on? I'm using fragments in my case to leverage computed properties...
Regular Ember Data relationships are not supported by Ember Data Model Fragments.
Is there a better solution?
It needs documentation but you can use import { fragmentOwner } from 'ember-data-model-fragments/attributes'
for a macro that will allow access to the owner of the fragment
let's have (like in the readMe)
Is there any way, from an address instance, to retrieve the person 'parent' without adding an attribute in the
address
model and passing it as a params when creating a new one :edit : while checking the code, I know that we can access it through
this._internalModel._owner
but as "private keys", we can't use it as a computed property likethis._internalModel._ower.my_pp
. So it doesn't solved my issue