From 9fb6221cc256f01dcf7ae694504fb5e27a286934 Mon Sep 17 00:00:00 2001 From: thomasafink Date: Tue, 9 Jan 2024 10:56:40 +0100 Subject: [PATCH 1/4] Camel Case doesn't work with the Factory.php --- zmsdb/src/Zmsdb/ProcessStatusArchived.php | 2 +- zmsentities/src/Zmsentities/ProcessArchived.php | 3 ++- zmsentities/src/Zmsentities/Processarchived.php | 16 ++++++++++++++++ zmsentities/src/Zmsentities/Schema/Factory.php | 3 +++ 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 zmsentities/src/Zmsentities/Processarchived.php diff --git a/zmsdb/src/Zmsdb/ProcessStatusArchived.php b/zmsdb/src/Zmsdb/ProcessStatusArchived.php index 9df897692..5955d6791 100644 --- a/zmsdb/src/Zmsdb/ProcessStatusArchived.php +++ b/zmsdb/src/Zmsdb/ProcessStatusArchived.php @@ -1,7 +1,7 @@ getEntityName(); $class = "\\BO\\Zmsentities\\$entityName"; + error_log($class); return new $class(new UnflattedArray($this->data)); } + /** * Parse schema and return Entity name @@ -48,6 +50,7 @@ public function getEntityName() throw new \BO\Zmsentities\Exception\SchemaMissingKey('Missing $schema-key on given data.'); } $schema = $this->data['$schema']; + error_log($schema ); $entityName = preg_replace('#^.*/([^/]+)\.json#', '$1', $schema); return ucfirst($entityName); } From f3d4ef05b3e6822c76e8fd8fab6af0c3d6c24fee Mon Sep 17 00:00:00 2001 From: thomasafink Date: Tue, 9 Jan 2024 10:59:22 +0100 Subject: [PATCH 2/4] Remove error logs --- zmsentities/src/Zmsentities/Schema/Factory.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/zmsentities/src/Zmsentities/Schema/Factory.php b/zmsentities/src/Zmsentities/Schema/Factory.php index 368f3aae6..18b6a0961 100644 --- a/zmsentities/src/Zmsentities/Schema/Factory.php +++ b/zmsentities/src/Zmsentities/Schema/Factory.php @@ -34,7 +34,6 @@ public function getEntity() { $entityName = $this->getEntityName(); $class = "\\BO\\Zmsentities\\$entityName"; - error_log($class); return new $class(new UnflattedArray($this->data)); } @@ -50,7 +49,6 @@ public function getEntityName() throw new \BO\Zmsentities\Exception\SchemaMissingKey('Missing $schema-key on given data.'); } $schema = $this->data['$schema']; - error_log($schema ); $entityName = preg_replace('#^.*/([^/]+)\.json#', '$1', $schema); return ucfirst($entityName); } From e6525fbb466d77514fd1e07f4948d12202d4b29d Mon Sep 17 00:00:00 2001 From: thomasafink Date: Tue, 9 Jan 2024 11:01:44 +0100 Subject: [PATCH 3/4] Remove space --- zmsentities/src/Zmsentities/Schema/Factory.php | 1 - 1 file changed, 1 deletion(-) diff --git a/zmsentities/src/Zmsentities/Schema/Factory.php b/zmsentities/src/Zmsentities/Schema/Factory.php index 18b6a0961..a6c119f2f 100644 --- a/zmsentities/src/Zmsentities/Schema/Factory.php +++ b/zmsentities/src/Zmsentities/Schema/Factory.php @@ -37,7 +37,6 @@ public function getEntity() return new $class(new UnflattedArray($this->data)); } - /** * Parse schema and return Entity name * From 7ac86909e9a179fd9770704dc9d82c0206770807 Mon Sep 17 00:00:00 2001 From: thomasafink Date: Tue, 9 Jan 2024 11:03:07 +0100 Subject: [PATCH 4/4] Remove space --- zmsentities/src/Zmsentities/Schema/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmsentities/src/Zmsentities/Schema/Factory.php b/zmsentities/src/Zmsentities/Schema/Factory.php index a6c119f2f..0fc86f65e 100644 --- a/zmsentities/src/Zmsentities/Schema/Factory.php +++ b/zmsentities/src/Zmsentities/Schema/Factory.php @@ -36,7 +36,7 @@ public function getEntity() $class = "\\BO\\Zmsentities\\$entityName"; return new $class(new UnflattedArray($this->data)); } - + /** * Parse schema and return Entity name *