-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
When php_phongo_zval_to_bson_internal() appends raw data from a Document or PackedArray instance, it jumps past the code responsible for generating an "_id" field.
If the Document or PackedArray instance does not already include an "_id" field, BulkWrite::insert() will ultimately return nothing. libmongoc will likely still generate its own "_id" in _mongoc_write_command_insert_append(), but that won't be reported in PHP.
- is related to
-
PHPC-2210 Fix direct copying of BSON data from Document and PackedArray objects
- Closed
-
PHPC-326 Document and PackedArray classes to represent raw BSON data
- Closed
- related to
-
PHPLIB-1122 Support Document and PackedArray objects in public APIs
- Closed