Skip to content

Support for custom data includes in transformer #1575

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

Closed
wants to merge 1 commit into from

Conversation

vruello
Copy link

@vruello vruello commented Jul 15, 2018

Quick fix for #1133 and related issues.

The attribute lazyLoadedIncludes must be declared public in the transformer to make it work. Otherwise, it would have been necessary to change Fractal library to add a getter.

All the includes name listed in this array will not be loaded using eager loading. It is then possible to include custom data not linked to any relationship or model.

gazben added a commit to gazben/api that referenced this pull request Sep 12, 2018
Fix dingo#1575 
This is a resubmission of the pull request with proper formatting
@gazben
Copy link
Contributor

gazben commented Sep 12, 2018

@vruello I resubmitted your changes now the CI will accept it.

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

Successfully merging this pull request may close these issues.

2 participants