Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
import
Commits
ec1e41a0
Commit
ec1e41a0
authored
Feb 27, 2018
by
Laurent Lécluse
Browse files
Correction de bug empêchant l'import de données
parent
f8abbe94
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenImport/Service/QueryGeneratorService.php
View file @
ec1e41a0
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment