-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 5.1.3
-
Component/s: None
-
None
Currently in the process of upgrading from 4.x to 5.x and it seems that either in the driver or the new mongo code (2.6 -> 3.0), if IDs passed to a query are passed using a `String`, no results will be found, but if I pass a `BSON::ObjectId(String)`, it suddenly works.
Any ideas?
Thanks!
- duplicates
-
MONGOID-4282 Foreign key string are not properly evolved to ObjectIds in #where for polymorphic relations
- Closed