Support object cloning for ReadConcern, ReadPreference, and WriteConcern

XMLWordPrintableJSON

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

      PHPC-73 disabled cloning for all extension classes, but we later added cloning for BSON objects in PHPC-1230. Since ReadConcern, ReadPreference, and WriteConcern are also value objects, we can consider supporting cloning for them as well.

      While CursorId, WriteConcernError, and WriteError are also value objects, I'm not considering them here as users are unlikely to ever create those objects directly. It makes more sense to defer their support until the feature is requested (if ever).

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

              Created:
              Updated: