Commit ec1e41a0 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

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

parent f8abbe94
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment