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

findFirst doesn't respect hydration mode #10259

Closed
dschissler opened this issue May 6, 2015 · 1 comment
Closed

findFirst doesn't respect hydration mode #10259

dschissler opened this issue May 6, 2015 · 1 comment

Comments

@dschissler
Copy link
Contributor

Simply findFirst will always return a model object even when hydration arrays is passed in. This is useful when overloading the static find methods to use a factory to initialize specific types.

The workaround is simply to call find and to set it up in a more verbose manner as this accepts the hydration option or to call toArray on the returned model if it is not abstract.

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