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
Hey there, thanks for this awesome package. This particular issue has been mentioned and fixed previously in #106. I've got this:
class VariationTransformer extends Transformer { protected $load = [ 'product' => ProductTransformer::class ]; public function transform(Variation $model): array { return [ 'id' => $model->id, 'sku' => $model->sku, 'name' => $model->name ]; } }
And this.
class ProductTransformer extends Transformer { protected $load = [ 'variations' => VariationTransformer::class ]; public function transform(Product $model): array { return [ 'name' => $model->name, 'description' => $model->description ]; } }
The problem seems to be caused by the $load relationships calling each other. I'm using the latest version (3.1.2).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey there, thanks for this awesome package. This particular issue has been mentioned and fixed previously in #106. I've got this:
And this.
The problem seems to be caused by the $load relationships calling each other. I'm using the latest version (3.1.2).
The text was updated successfully, but these errors were encountered: