From f0f49ecbc3108a378b3d7cb92911be9e0c09d19c Mon Sep 17 00:00:00 2001 From: iglocska Date: Tue, 29 Jun 2021 09:17:03 +0200 Subject: [PATCH] fix: [entities] added brood, fixed instance --- src/Model/Entity/Brood.php | 19 +++++++++++++++++++ src/Model/Entity/Instance.php | 8 -------- 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 src/Model/Entity/Brood.php diff --git a/src/Model/Entity/Brood.php b/src/Model/Entity/Brood.php new file mode 100644 index 0000000..84b8c10 --- /dev/null +++ b/src/Model/Entity/Brood.php @@ -0,0 +1,19 @@ + true, + 'id' => false, + 'uuid' => false, + ]; + + protected $_accessibleOnNew = [ + 'uuid' => true, + ]; +} diff --git a/src/Model/Entity/Instance.php b/src/Model/Entity/Instance.php index 247e847..a6d1380 100644 --- a/src/Model/Entity/Instance.php +++ b/src/Model/Entity/Instance.php @@ -7,13 +7,5 @@ use Cake\ORM\Entity; class Instance extends AppModel { - protected $_accessible = [ - '*' => true, - 'id' => false, - 'uuid' => false, - ]; - protected $_accessibleOnNew = [ - 'uuid' => true, - ]; }