diff --git a/Entity/SyncState.php b/Entity/SyncState.php index 1e47788..e7999ec 100755 --- a/Entity/SyncState.php +++ b/Entity/SyncState.php @@ -13,6 +13,7 @@ class SyncState { const REAL_LAST_TIMESTAMP = "_real_last_timestamp"; + const TOTAL_COUNT = "_total_count"; /** * @var int * diff --git a/Service/SyncService.php b/Service/SyncService.php index 5326367..bf3542f 100755 --- a/Service/SyncService.php +++ b/Service/SyncService.php @@ -80,6 +80,7 @@ public function getFromMappings($mappings) { 'newItems' => json_decode($this->container->get('jms_serializer')->serialize($newItems, 'json'), true), 'failedItems' => json_decode($this->container->get('jms_serializer')->serialize($failedItems, 'json'), true), SyncState::REAL_LAST_TIMESTAMP => $result[SyncState::REAL_LAST_TIMESTAMP], + SyncState::TOTAL_COUNT => $result[SyncState::TOTAL_COUNT], ); }