Issue Details (XML | Word | Printable)

Key: MODM-26
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jonathan H. Wage
Reporter: Bulat Shakirzyanov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Doctrine MongoDB ODM

MongoCursor doesn't implement Countable interface

Created: 13/Jul/10 10:40 AM   Updated: 19/Jul/10 01:09 PM
Component/s: None
Affects Version/s: 1.0.0ALPHA1
Fix Version/s: 1.0.0ALPHA2


 Description  « Hide
this causes confusion when query returns empty array instead of MongoCursor object, meaning you can't use neither count($result) nor $result->count(), and have to check for the returned type explicitly

 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Jonathan H. Wage added a comment - 19/Jul/10 01:09 PM
Fixed and added a MongoCursorTest file.