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

Do not trigger E_USER_DEPRECATED for autoIndexId CreateCollection option

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

      This is a suggestion to revert the triggering of E_USER_DEPRECATED when using the autoIndexId option in a CreateCollection operation. The option can remain deprecated in our documentation.

      Quoting create command docs:

      Starting in MongoDB 4.0, you cannot set the option autoIndexId to false when creating collections in databases other than the local database.

      Deprecated since version 3.2.

      Comments in SERVER-8237 also suggest that there is still a valid use case for the option with non-replicated (i.e. local database) collections.

      I raised similar concerns in DRIVERS-473, although it looks like they were never acknowledged before we moved ahead with PHPLIB-346.

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

              Created:
              Updated: