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

FindAndModify does not return an object

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0BETA1
    • Fix Version/s: 1.0.0BETA2
    • Component/s: Document Manager
    • Labels:
      None
    • Environment:
      Windows xp sp3, apache

      Description

      Boolean true is returned instead of an object after a FindAndModify command is successfully executed.

      $c = $dm->createQuery('downloads')
      ->findAndModify(array('new' => true))
      >field('key')>equals('file1')
      ->update()
      >field('counter')>inc(1)
      ->execute();

      echo gettype($c); // boolean

        Activity

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Başar Aykut
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: