Support object cloning for BSON classes

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None

      PHPLIB-190 implemented __clone() handlers for the BSONArray and BSONDocument classes in PHPLIB 1.4.0; however, it looks like the BSON classes in the driver were never clone-able. This can lead to "Trying to clone an uncloneable object of class %s" when attempting to clone BSONArray and BSONDocument objects that contain the driver's BSON objects.

      This should be a relatively straightforward task, since only Javascript contains a non-scalar property. Even then, the internal properties of each BSON class are immutable, so a deep copy may not be required there; however, we should test Javascript scopes thoroughly.

              Assignee:
              Andreas Braun
              Reporter:
              Jeremy Mikola
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: