Closed PeterCat12 closed 4 years ago
https://github.com/thephpleague/fractal/issues/513 Will reopen if I determine the issue is with the fractal
package.
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
I'm not yet sure if this issue ultimately rests on
Fractalistic
or the underlyingFractal
package. Will close if I determine this is the inappropriate place for this issue.When
\League\Fractal\TransformerAbstract::callIncludeMethod
calls the\League\Fractal\Scope::getIdentifier
method the resulting identifier is "incorrect" IF\Spatie\Fractalistic\Fractal::withResourceName
was called to set a "top level identifier". It's "incorrect" in the sense that\League\Fractal\Manager::getIncludeParams
method has no entry for the resulting identifier.Code example:
url:
/api/v1/abcd/users/36?include=comments:status_in(deleted)
Then in
\League\Fractal\TransformerAbstract::callIncludeMethod