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

Relationship not using custom resourcekey when loaded data #142

Open
wukongrita opened this issue Aug 26, 2019 · 2 comments
Open

Relationship not using custom resourcekey when loaded data #142

wukongrita opened this issue Aug 26, 2019 · 2 comments

Comments

@wukongrita
Copy link

Hi @Flugger, this is an awesome project!

Btw; I have 2 models that related to each other with custom resourcekey, but I cannot have my custom resourcekey for the related model. What I've got is what I've define in the transformer ($load) as the resourcekey not the custom resourcekey that I already defined in getResourceKey() of the models.

Is there a way to use the getResourceKey() as the custom resourcekey on the relational ?

@flugg
Copy link
Owner

flugg commented Aug 27, 2019

Hi @wukongrita, thanks for the kind words. Do I understand you correctly in that you rather have the getResourceKey take precedence over the keys in the $load property?

@wukongrita
Copy link
Author

yes... or maybe there is a variable to set which keys that i would like to use? (either the getResourcekey or $load)

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

2 participants