|
@@ -219,6 +219,8 @@ class Mongo extends Base
|
|
//$insert['_id'] = new ObjectId();
|
|
//$insert['_id'] = new ObjectId();
|
|
$bulk = new BulkWrite;
|
|
$bulk = new BulkWrite;
|
|
$id = $bulk->insert($insert);
|
|
$id = $bulk->insert($insert);
|
|
|
|
+ $id = (array) $id;
|
|
|
|
+ $id = $id['oid'];
|
|
$result = $this->update->executeBulkWrite($this->db . '.' . $table, $bulk);
|
|
$result = $this->update->executeBulkWrite($this->db . '.' . $table, $bulk);
|
|
if (Debug::$shell) {
|
|
if (Debug::$shell) {
|
|
$this->log(array('table' => $this->db . '.' . $table, 'insert' => $insert, 'result' => $id));
|
|
$this->log(array('table' => $this->db . '.' . $table, 'insert' => $insert, 'result' => $id));
|