Skip to content

Fix for issue when running a where comparison on fields of type MongoID #40

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

Adewra
Copy link

@Adewra Adewra commented Sep 16, 2013

Added in a fix for an issue when executing a where query on field which is of type MongoID. Previously, it would not return any results as it was searching for a string, now if the string matches the MongoID format it will search for a MongoID instead.

…ch is of type MongoID. Previously, it would not return any results as it was searching for a string, now if the string matches the MongoID format it will search for a MongoID instead.
@jenssegers
Copy link
Contributor

This seems to cause a few problems in the tests. I think it is best to manually create a MongoID object for this situation, like you would do with the native objects.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants