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

Support object cloning for ReadConcern, ReadPreference, and WriteConcern

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: 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 Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: