withOptions() method for cloning immutable Database and Collection objects

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 1.0.0-beta2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Changing the write concern or read preference should return a new object with the applied preferences.

      For example, Collection::withOptions(['readPreference' => ...]) should create a new Collection object with the same Manager but a new default read preference. This is similar to what behackett is doing in the Python driver (see with_options).

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: