Skip to content

Commit

Permalink
[framework] EntityLog no longers logs collection without change (#3375)
Browse files Browse the repository at this point in the history
Co-authored-by: Milan Staňo <milan.stano@shopsys.com>
  • Loading branch information
stanoMilan and msshopsys authored Sep 2, 2024
1 parent 049553c commit c00fd04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Component/EntityLog/ChangeSet/ChangeSetResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ public function resolveChangesOnCollectionForEntity(array $scheduledCollections,
));
}

if (count($collectionChanges->deletedItems) === 0 && count($collectionChanges->insertedItems) === 0) {
continue;
}

$assoc = $scheduledCollection->getMapping();
$collectionFieldName = $assoc['fieldName'];
$resolvedChangedCollections[$collectionFieldName] = $collectionChanges;
Expand Down

0 comments on commit c00fd04

Please sign in to comment.