-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
fix(model): throw an error if operations are used with custom
#173
Conversation
… with the `custom` method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JoaoPedroAS51 !
I don't think it has been reported before, but should we also implement this for |
@Peter-Krebs Good idea! Perhaps we should also implement this for I noted that all of these methods ( What do you think? |
…sed with `custom`
save
is used with custom
custom
Yes, anything that uses POST, PATCH, PUT or DELETE makes sense to me. The error message should also say "Use for() instead." at the end so people know what to do. |
@Peter-Krebs Done, error message updated :) |
Seems good, thanks for the fix! |
🎉 This PR is included in version 1.9.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Throw an error if CRUD or relationship operations are used in in conjunction with the
custom
method.Fixes #172