Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2440

Remove deprecated Query constructor options

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • PHP Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      The following options for MongoDB\Driver\Query::__construct() are deprecated and can be removed:

      • partial is a deprecated alias for allowPartialResults
      • maxScan was deprecated in server 4.0 (SERVER-32953) and removed in 4.2 (SERVER-35044)
      • modifiers is used for legacy query modifiers, which are all deprecated.
      • oplogReplay has been deprecated since PHPC 1.8 (PHPC-1525). It is deprecated in the CRUD spec and ignored by server 4.4+ (SERVER-36186)
      • snapshot was deprecated in server 3.6 (SERVER-32173) and removed in 4.0 (SERVER-32174)
      • Negative limit implying singleBatch: true

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: