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

BulkWrite::insert() should always return the document's ID

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: 1.0.0-beta2
    • Component/s: None
    • None

      PHPLIB currently has workarounds for extracting the _id from a document if it was not generated by the driver; however, this doesn't work if the _id was returning from a Serializable object, as it may not be an accessible property in the original insert() argument, nor is it currently returned by insert().

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: