File tree 1 file changed +5
-3
lines changed
src/Migration/Step/PostProcessing/Data 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,11 @@ public function saveChanged($documents)
92
92
$ documentsToSave = [];
93
93
$ documents = array_unique (array_merge ($ this ->deltaDocuments , $ documents ));
94
94
foreach ($ documents as $ document ) {
95
- $ recordsCountSource = $ this ->source ->getRecordsCount (
96
- $ this ->mapReader ->getDocumentMap ($ document , MapInterface::TYPE_DEST )
97
- );
95
+ $ documentMap = $ this ->mapReader ->getDocumentMap ($ document , MapInterface::TYPE_DEST );
96
+ if (!$ documentMap ) {
97
+ continue ;
98
+ }
99
+ $ recordsCountSource = $ this ->source ->getRecordsCount ($ documentMap );
98
100
$ recordsCountDestination = $ this ->destination ->getRecordsCount ($ document );
99
101
if ($ recordsCountSource != $ recordsCountDestination ) {
100
102
$ documentsToSave [$ document ] = $ recordsCountSource - $ recordsCountDestination ;
You can’t perform that action at this time.
0 commit comments