Skip to content

Conversation

@cloudever
Copy link

Related model's hooks contains only prototype.__updateById__${relationName} method.
But also prototype.__create__${relationName} should be exists to handle routes like POST /product/{id}/reviews.

Related model hooks contained only `prototype.__updateById__${relationName}` method.
But also `prototype.__create__${relationName}` have to be added to handle routes like `POST /product/{id}/reviews`.
@cloudever
Copy link
Author

I fixed it locally and it works well.

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.

1 participant