From ec1e41a0f10538308fda52910b8ef9b714bbeb12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20L=C3=A9cluse?= <laurent.lecluse@unicaen.fr> Date: Tue, 27 Feb 2018 15:35:23 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20de=20bug=20emp=C3=AAchant=20l'impo?= =?UTF-8?q?rt=20de=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UnicaenImport/Service/QueryGeneratorService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/UnicaenImport/Service/QueryGeneratorService.php b/src/UnicaenImport/Service/QueryGeneratorService.php index 0fb4126..7a79dd6 100644 --- a/src/UnicaenImport/Service/QueryGeneratorService.php +++ b/src/UnicaenImport/Service/QueryGeneratorService.php @@ -220,12 +220,14 @@ class QueryGeneratorService extends AbstractService */ public function updateViewsAndPackages() { + $this->getEntityManager()->getConnection()->executeQuery('UPDATE import_tables SET sync_enabled = 0'); $this->populateImportTables(); $views = $this->makeDiffViews(); foreach ($views as $vn => $view) { $this->exec($view); + $this->getEntityManager()->getConnection()->executeQuery('UPDATE import_tables SET sync_enabled = 1 WHERE table_name = :table', ['table' => $vn]); } $declaration = $this->makePackageDeclaration(); -- GitLab