Phalcon-MongoDB-ODM icon indicating copy to clipboard operation
Phalcon-MongoDB-ODM copied to clipboard

_id is not always ObjectId()

Open ghost opened this issue 7 years ago • 0 comments

In some cases _id can be just a string. But in methods findById and others hardcoded ObjectId($id) is used. So when I try to find by String, the response is empty.

ghost avatar Feb 02 '17 10:02 ghost