From 931198c102a65a4fab7b89d9d1e186b635dd1aa5 Mon Sep 17 00:00:00 2001 From: PaG0Dezaum Date: Wed, 4 Sep 2024 10:54:10 -0300 Subject: [PATCH] =?UTF-8?q?resolvi=20o=20problema=20dos=20coment=C3=A1rios?= =?UTF-8?q?=20bugados=20embaixo=20de=20cada=20entity-field,=20tam=C3=A9m?= =?UTF-8?q?=20os=20problemas=20de=20erro=20ao=20entrar=20na=20home?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev/docker-compose.yml | 1 + src/conf/config.php | 3 --- src/core/Traits/EntityManagerModel.php | 18 --------------- .../Traits/EntityOpportunityDuplicator.php | 1 - .../components/entity-field/template.php | 23 ------------------- 5 files changed, 1 insertion(+), 45 deletions(-) diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index 17d78f90fe..a4be0f13e0 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -41,6 +41,7 @@ services: - BUILD_ASSETS=0 - PENDING_PCACHE_RECREATION_INTERVAL=5 - JOBS_INTERVAL=5 + - APP_MODE=development - REDIS_CACHE=redis - MAILER_TRANSPORT=smtp://mailhog:1025 - MAILER_FROM=sysadmin@localhost diff --git a/src/conf/config.php b/src/conf/config.php index 319b69b223..6427f36aa8 100644 --- a/src/conf/config.php +++ b/src/conf/config.php @@ -13,9 +13,6 @@ $folders = glob(CONFIG_PATH . '*.d/'); $folders_dev = glob(PROTECTED_PATH . 'containers/config.d/'); -if ($_ENV['APP_MODE'] === APPMODE_DEVELOPMENT) { - $folders = array_merge($folders, $folders_dev); -} sort($folders); foreach($folders as $folder) { $config_files = glob($folder . '*.php'); diff --git a/src/core/Traits/EntityManagerModel.php b/src/core/Traits/EntityManagerModel.php index 6a122a1b1c..1b1c8962a3 100644 --- a/src/core/Traits/EntityManagerModel.php +++ b/src/core/Traits/EntityManagerModel.php @@ -90,24 +90,6 @@ private function generateOpportunity() : ProjectOpportunity return $this->opportunityModel; } - private function generateOpportunity() : ProjectOpportunity - { - $app = App::i(); - - $postData = $this->postData; - - $name = $postData['name']; - - $this->opportunityModel = clone $this->opportunity; - - $this->opportunityModel->setName($name); - $this->opportunityModel->setStatus(0); - $app->em->persist($this->opportunityModel); - $app->em->flush(); - - return $this->opportunityModel; - } - private function generateEvaluationMethods() : void { $app = App::i(); diff --git a/src/core/Traits/EntityOpportunityDuplicator.php b/src/core/Traits/EntityOpportunityDuplicator.php index de5c7d4691..a15633979d 100644 --- a/src/core/Traits/EntityOpportunityDuplicator.php +++ b/src/core/Traits/EntityOpportunityDuplicator.php @@ -6,7 +6,6 @@ trait EntityOpportunityDuplicator { - private ProjectOpportunity $opportunity; private ProjectOpportunity $newOpportunity; function ALL_duplicate(){ diff --git a/src/modules/Entities/components/entity-field/template.php b/src/modules/Entities/components/entity-field/template.php index 6c50fdc1fc..f5894b56f5 100644 --- a/src/modules/Entities/components/entity-field/template.php +++ b/src/modules/Entities/components/entity-field/template.php @@ -64,29 +64,6 @@ - /* - */ -