@@ 1226-1230 (lines=5) @@ | ||
1223 | return $doc['_id']; |
|
1224 | } catch (\MongoException $e) { |
|
1225 | Daemon::log('MongoClient exception: '.$e->getMessage().': '.$e->getTraceAsString()); |
|
1226 | if ($cb !== null) { |
|
1227 | if ($cb !== null) { |
|
1228 | call_user_func($cb, ['$err' => $e->getMessage(), '$doc' => $doc]); |
|
1229 | } |
|
1230 | } |
|
1231 | } |
|
1232 | } |
|
1233 | ||
@@ 1273-1275 (lines=3) @@ | ||
1270 | $bson .= bson_encode($doc); |
|
1271 | } catch (\MongoException $e) { |
|
1272 | Daemon::log('MongoClient exception: '.$e->getMessage().': '.$e->getTraceAsString()); |
|
1273 | if ($cb !== null) { |
|
1274 | call_user_func($cb, ['$err' => $e->getMessage(), '$doc' => $doc]); |
|
1275 | } |
|
1276 | } |
|
1277 | ||
1278 | $ids[] = $doc['_id']; |
|
@@ 1331-1333 (lines=3) @@ | ||
1328 | }); |
|
1329 | } catch (\MongoException $e) { |
|
1330 | Daemon::log('MongoClient exception: '.$e->getMessage().': '.$e->getTraceAsString()); |
|
1331 | if ($cb !== null) { |
|
1332 | call_user_func($cb, ['$err' => $e->getMessage(), '$query' => $cond]); |
|
1333 | } |
|
1334 | } |
|
1335 | } |
|
1336 |