Skip to content
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

For associations where we expect only one record, if there are multiple, then we should raise an error #189

Open
rpbaltazar opened this issue Dec 16, 2019 · 1 comment

Comments

@rpbaltazar
Copy link
Contributor

E.g. Has One Resource assumes that there is only one associate resource. If for some reason the data got out of sync, we'd be happily filtering out other results instead of explaining that there are inconsistent data.

@rpbaltazar
Copy link
Contributor Author

rpbaltazar commented Dec 16, 2019

We should probably add an association error class to handle these cases.
E.g. AssociationError::CountMismatch

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

No branches or pull requests

1 participant