-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: 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).
- depends on
-
PHPLIB-144 Use option arrays for taking optional method arguments
- Closed
- related to
-
PHPLIB-389 Implement Client::withOptions() method
- Closed