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

Assert that option "sort" is not used with bulk updateMany and deleteMany

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Bulk API
    • None
    • PHP Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      PHPC tests on legacy bulkwrite have a test that the option "sort" is not used when "multi" is true.

      https://github.com/mongodb/mongo-php-driver/blob/v2.x/tests/bulk/bulkwrite-update_error-009.phpt 

      To prevent such programmer error, we can reject the usage of the option "sort" in methods "updateMany" and "deleteMany" of ClientBulkWrite.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: