-
-
Notifications
You must be signed in to change notification settings - Fork 950
fix(laravel): collection relations other than HasMany #6737
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
Conversation
|
nice thanks! Isn't there an interface that all these |
sadly, no. All relation classes extend |
src/Laravel/Eloquent/Metadata/Factory/Property/EloquentPropertyMetadataFactory.php
Outdated
Show resolved
Hide resolved
|
awesome! thanks @amermchaudhary |
|
I'm new to API Platform and I'm still having trouble integrating belongsToMany relationships. Could you provide an example, or perhaps enhance the examples in |
|
@Jehong-Ahn the issue is fixed in version 4.0.6. Please make sure you have the latest code |
|
Example: |
|
Thanks @amermchaudhary! I see we can use HasManyThrough. |
Fixes the issue on collection relations other than HasMany not working for Laravel