@@ 259-271 (lines=13) @@ | ||
256 | } |
|
257 | ||
258 | /** {@inheritdoc} */ |
|
259 | public function getDeletedDocuments() |
|
260 | { |
|
261 | $compare = function ($a, $b) { |
|
262 | $compareA = is_object($a) ? spl_object_hash($a) : $a; |
|
263 | $compareb = is_object($b) ? spl_object_hash($b) : $b; |
|
264 | return $compareA === $compareb ? 0 : ($compareA > $compareb ? 1 : -1); |
|
265 | }; |
|
266 | return array_values(array_udiff( |
|
267 | $this->snapshot, |
|
268 | $this->coll->toArray(), |
|
269 | $compare |
|
270 | )); |
|
271 | } |
|
272 | ||
273 | /** {@inheritdoc} */ |
|
274 | public function getInsertDiff() |
|
@@ 284-296 (lines=13) @@ | ||
281 | } |
|
282 | ||
283 | /** {@inheritdoc} */ |
|
284 | public function getInsertedDocuments() |
|
285 | { |
|
286 | $compare = function ($a, $b) { |
|
287 | $compareA = is_object($a) ? spl_object_hash($a) : $a; |
|
288 | $compareb = is_object($b) ? spl_object_hash($b) : $b; |
|
289 | return $compareA === $compareb ? 0 : ($compareA > $compareb ? 1 : -1); |
|
290 | }; |
|
291 | return array_values(array_udiff( |
|
292 | $this->coll->toArray(), |
|
293 | $this->snapshot, |
|
294 | $compare |
|
295 | )); |
|
296 | } |
|
297 | ||
298 | /** {@inheritdoc} */ |
|
299 | public function getOwner() |