Commit ec1e41a0 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction de bug empêchant l'import de données

parent f8abbe94
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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();