Loading src/UnicaenImport/Service/QueryGeneratorService.php +2 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading
src/UnicaenImport/Service/QueryGeneratorService.php +2 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading