Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-17

Implement Collection::updateMany()

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Update writes should check that the first key in the replacement document parameter does start with a $ symbol. That check is sufficient as the server will complain if the document contains a mix of atomic modifiers and non-modifier field replacements.

      Usage example:

      $collection->updateMany(
          ['x' => 1],
          ['$set' => ['x' => 2]],
          ['upsert' => true]
      );
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: