Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0.0BETA2
-
Component/s: Mongo, MongoCollection, MongoCursor
-
Labels:None
Description
When running a query against a GridFS that should return no results, I expect the return value to be null (as with normal documents) instead an InvalidArgumentException is thrown, with the message "The given document has no identity".
It appears the empty result is trying to be registered as a managed document with the UOW, because MongoCollection does not return null in this case.
Issue fixed in my git hub branch
scottaubrey / mongodb-odm @
MODM-59git@github.com:scottaubrey/mongodb-odm.git
pull request sent
(sorry not sure how much of this I'm meant to mention here, my first contribution with git and github)