Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-26

MongoCursor doesn't implement Countable interface

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0ALPHA1
    • Fix Version/s: 1.0.0ALPHA2
    • Component/s: None
    • Labels:
      None

      Description

      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

        Activity

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Bulat Shakirzyanov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: