[MODM-26] MongoCursor doesn't implement Countable interface Created: 13/Jul/10  Updated: 19/Jul/10  Resolved: 19/Jul/10

Status: Resolved
Project: Doctrine MongoDB ODM
Component/s: None
Affects Version/s: 1.0.0ALPHA1
Fix Version/s: 1.0.0ALPHA2

Type: Improvement Priority: Major
Reporter: Bulat Shakirzyanov Assignee: Jonathan H. Wage
Resolution: Fixed Votes: 0
Labels: None


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

Comment by Jonathan H. Wage [ 19/Jul/10 ]

Fixed and added a MongoCursorTest file.

Generated at Sun Oct 04 01:15:07 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.