-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: 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.
- is related to
-
PHPLIB-190 Support object cloning for BSONArray and BSONDocument
- Closed
- related to
-
PHPLIB-367 Deep cloning of BSONArray and BSONDocument should respect uncloneable objects
- Closed
-
PHPC-1627 Support object cloning for ReadConcern, ReadPreference, and WriteConcern
- Backlog
- links to