This page explains how to deal with timestamps / change times at your documents in order to map them to Shopware successfully.
All information provided on this page is only relevant if the module runs in "delta-mode". So please read the documentation about import-modes carefully as these topics are closely related.
Change Time Traits
The data model provides multiple traits to add timestamps to a document:
Warning: The trait
ChangeTimeCollectionAware is completely ignored by the module.
Only the fields
deletedAt provided by the traits
used in the calculation of the data to be processed.
In general a document is ignored, if all of its timestamp-values (
deletedAt) are before the value
lastSync in the module configuration.
Embedded documents do not cause a "parent" document to be part of the handled documents. If you need to update an entity that is mapped from an embedded document the timestamps of the owning base document must be updated as well.
Example: If you update the embedded document
GeneralInformation of a
Product and update its timestamps the owning
not be part of the next flow-execution. This is only the case if the timestamps of the main document are set accordingly.
The behavior of embedded documents does not apply
to extracted documents
. Example: If you update the embedded document
PropertyOption (which is extracted before being mapped to Shopware) the only timestamp
that matters is the timestamp of the embedded document itself.