From 5fbd53883f943612daf4c14ec90f6e0bea3c2680 Mon Sep 17 00:00:00 2001 From: iglocska Date: Mon, 31 Jan 2022 09:35:33 +0100 Subject: [PATCH] fix: [sync] created field rules added - should stop issues of SG/Individual downloads from remote brood --- src/Model/Entity/EncryptionKey.php | 1 - src/Model/Entity/Individual.php | 2 ++ src/Model/Entity/SharingGroup.php | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Model/Entity/EncryptionKey.php b/src/Model/Entity/EncryptionKey.php index 4fe40fa..c2f0f04 100644 --- a/src/Model/Entity/EncryptionKey.php +++ b/src/Model/Entity/EncryptionKey.php @@ -7,5 +7,4 @@ use Cake\ORM\Entity; class EncryptionKey extends AppModel { - } diff --git a/src/Model/Entity/Individual.php b/src/Model/Entity/Individual.php index 15ea1f2..dcf932f 100644 --- a/src/Model/Entity/Individual.php +++ b/src/Model/Entity/Individual.php @@ -11,10 +11,12 @@ class Individual extends AppModel '*' => true, 'id' => false, 'uuid' => false, + 'created' => false, ]; protected $_accessibleOnNew = [ 'uuid' => true, + 'created' => true, ]; protected $_virtual = ['full_name']; diff --git a/src/Model/Entity/SharingGroup.php b/src/Model/Entity/SharingGroup.php index 34d4b01..e2d1366 100644 --- a/src/Model/Entity/SharingGroup.php +++ b/src/Model/Entity/SharingGroup.php @@ -13,11 +13,13 @@ class SharingGroup extends AppModel 'uuid' => false, 'organisation_id' => false, 'user_id' => false, + 'created' => false ]; protected $_accessibleOnNew = [ 'uuid' => true, 'organisation_id' => true, 'user_id' => true, + 'created' => true ]; }