| @@ 1217-1221 (lines=5) @@ | ||
| 1214 | "\x00\x00\x00\x00" |
|
| 1215 | . $col . "\x00" |
|
| 1216 | . bson_encode($doc) |
|
| 1217 | , false, null, function ($conn, $reqId = null) use ($cb, $col, $params) { |
|
| 1218 | if ($cb !== NULL) { |
|
| 1219 | $this->lastError($col, $cb, $params, $conn); |
|
| 1220 | } |
|
| 1221 | }); |
|
| 1222 | ||
| 1223 | return $doc['_id']; |
|
| 1224 | } catch (\MongoException $e) { |
|
| @@ 1285-1289 (lines=5) @@ | ||
| 1282 | "\x00\x00\x00\x00" |
|
| 1283 | . $col . "\x00" |
|
| 1284 | . $bson |
|
| 1285 | , false, null, function ($conn, $reqId = null) use ($cb, $col, $params) { |
|
| 1286 | if ($cb !== NULL) { |
|
| 1287 | $this->lastError($col, $cb, $params, $conn); |
|
| 1288 | } |
|
| 1289 | }); |
|
| 1290 | return $ids; |
|
| 1291 | } |
|
| 1292 | ||