You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have protected bool $selfLink = false; and BelongsToMany::make('articles') inside UserSchema.
Now i can success attach relation with POST /users/448/relationships/articles
But cant sync it with PATCH, i get 500 error on vendor/laravel-json-api/encoder-neomerx/src/Document.php:194
It is bug inside RelationshipDocument?
if i delete two lines it, then its works
Also if i set selfLink = true its works
@VoronovAlexander I'm not sure this actually is a bug. Disabling the self link is intended for use when the resource is not retrievable by its id. However, if you have a relationship endpoint then your resource is retrievable by its id.
I have
protected bool $selfLink = false;
andBelongsToMany::make('articles')
inside UserSchema.Now i can success attach relation with POST /users/448/relationships/articles
But cant sync it with PATCH, i get 500 error on vendor/laravel-json-api/encoder-neomerx/src/Document.php:194
It is bug inside RelationshipDocument?
if i delete two lines it, then its works
Also if i set
selfLink = true
its worksTrace
The text was updated successfully, but these errors were encountered: