1
0
Fork 0
mirror of synced 2024-06-02 02:44:47 +12:00

fix: prevent throwing error when document is missing ID

This commit is contained in:
Torsten Dittmann 2021-04-29 09:32:30 +02:00
parent cffa50f272
commit 3c4476f689

View file

@ -87,7 +87,8 @@ abstract class Migration
$new = call_user_func($callback, $document);
if (empty($new->getId())) {
throw new Exception('Missing ID');
Console::warning('Skipped Document due to missing ID.');
return;
}
if (!$this->check_diff_multi($new->getArrayCopy(), $old)) {