From f879325264c3b8d11a6c9df1196de3b5a3ce8689 Mon Sep 17 00:00:00 2001 From: ntidev Date: Thu, 19 Jul 2018 08:20:05 -0400 Subject: [PATCH 1/2] Update README.md Adding required step for setup --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 128b294..749978c 100755 --- a/README.md +++ b/README.md @@ -44,7 +44,10 @@ Below are a list of things that need to be considered in order to implement this 2. `ManyToOne` relationships that should alter the last synchronization timestamp of their parents should use the annotation `@NTI\SyncParent(getter="[Getter Name]")` (see example below for more information). 3. Entities to be synced must have a repository implementing the `SyncRepositoryInterface` (see below for more information). 4. The mapping `SyncMapping` needs to be configured foreach entity as it is the list used as reference for the lookup. -5. If the entity is going to be synched FROM the client, then a service must be defined in the `SyncMapping` database entry. Also, this method needs to implement the interface `SyncServiceInterface`. +5. The `SyncState` should be created for each mapping. This can be done with this query after creating all the `SyncMapping`: + ``` + `INSERT INTO nti_sync_mapping(mapping_id, timestamp) SELECT id, 0 FROM sync_nti_mapping;` +6. If the entity is going to be synched FROM the client, then a service must be defined in the `SyncMapping` database entry. Also, this method needs to implement the interface `SyncServiceInterface`. ## Tracking Changes From e53b3776b4cab19a86bd411a5a5ef29527bf619a Mon Sep 17 00:00:00 2001 From: ntidev Date: Thu, 19 Jul 2018 08:20:59 -0400 Subject: [PATCH 2/2] Update README.md Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 749978c..a726b09 100755 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Below are a list of things that need to be considered in order to implement this 4. The mapping `SyncMapping` needs to be configured foreach entity as it is the list used as reference for the lookup. 5. The `SyncState` should be created for each mapping. This can be done with this query after creating all the `SyncMapping`: ``` - `INSERT INTO nti_sync_mapping(mapping_id, timestamp) SELECT id, 0 FROM sync_nti_mapping;` + `INSERT INTO nti_sync_state(mapping_id, timestamp) SELECT id, 0 FROM sync_nti_mapping;` 6. If the entity is going to be synched FROM the client, then a service must be defined in the `SyncMapping` database entry. Also, this method needs to implement the interface `SyncServiceInterface`. ## Tracking Changes