You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the documentation, BulkWrite::insert($document) should:
If the document did not have an _id, a MongoDB\BSON\ObjectID will be generated and returned; otherwise, no value is returned.
However, when i want to insert a document which does not have a _id field, but does have a _ids field, this does not follow the above rule. NULL is returned instead of the expected generated ObjectID. The insert itself (performed by a Manager) works, though.
This happens with the latest version 1.1.5 from PECL.
The text was updated successfully, but these errors were encountered:
From the documentation, BulkWrite::insert($document) should:
However, when i want to insert a document which does not have a
_id
field, but does have a_ids
field, this does not follow the above rule.NULL
is returned instead of the expected generated ObjectID. The insert itself (performed by a Manager) works, though.This happens with the latest version 1.1.5 from PECL.
The text was updated successfully, but these errors were encountered: