-
Notifications
You must be signed in to change notification settings - Fork 91
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
1090 fix(m2m): Return empty list if there are no m2m entries #1089
Conversation
@nVitius Thank you for your PR. I think this error is intentional and tells us that the list of values cannot be empty. I think you should rather handle |
Seems unintuitive to throw an error instead of returning an empty list... To clarify, the error is indicating that |
I'm just looking at this now. |
Yeah, I think this is a bug. @sinisaos You make a good point - if someone calls |
Resolves #1090 |
@nVitius Sorry for my mistake. Thanks for the clarification. |
@sinisaos No need to apologise |
OK, I'm going to throw up a quick test, then will get this merged in. Thanks both 👍 |
@nVitius Thanks a lot for the fix - it will be in the next release 👍 |
The fix is in |
I ran into an issue where running
getm2m
without any existing m2m entries will throw an error that I believe is unintended.