Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
import
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
import
Commits
ef8b6148
Commit
ef8b6148
authored
Apr 6, 2017
by
Laurent Lecluse
Browse files
Options
Downloads
Patches
Plain Diff
Correction de bug : il est désormais possible de supprimer par synchro des enregistrements du futur
parent
e5a0184d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnicaenImport/Service/QueryGeneratorService.php
+2
-2
2 additions, 2 deletions
src/UnicaenImport/Service/QueryGeneratorService.php
with
2 additions
and
2 deletions
src/UnicaenImport/Service/QueryGeneratorService.php
+
2
−
2
View file @
ef8b6148
...
@@ -471,7 +471,7 @@ class QueryGeneratorService extends AbstractService
...
@@ -471,7 +471,7 @@ class QueryGeneratorService extends AbstractService
$joinCond
=
' AND S.'
.
self
::
ANNEE_COLUMN_NAME
.
' = d.'
.
self
::
ANNEE_COLUMN_NAME
;
$joinCond
=
' AND S.'
.
self
::
ANNEE_COLUMN_NAME
.
' = d.'
.
self
::
ANNEE_COLUMN_NAME
;
}
}
// destruction ssi dans l'année d'import courante
// destruction ssi dans l'année d'import courante
$delCond
=
' AND d.'
.
self
::
ANNEE_COLUMN_NAME
.
' = '
.
$this
->
getPackage
()
.
'.get_current_annee'
;
$delCond
=
' AND d.'
.
self
::
ANNEE_COLUMN_NAME
.
'
>
= '
.
$this
->
getPackage
()
.
'.get_current_annee'
;
}
else
{
}
else
{
// on recherche si la table dépend d'une table qui, elle, serait annualisée
// on recherche si la table dépend d'une table qui, elle, serait annualisée
foreach
(
$schema
as
$columnName
=>
$column
)
{
foreach
(
$schema
as
$columnName
=>
$column
)
{
...
@@ -483,7 +483,7 @@ class QueryGeneratorService extends AbstractService
...
@@ -483,7 +483,7 @@ class QueryGeneratorService extends AbstractService
// Donc, on utilise la table référente
// Donc, on utilise la table référente
$depJoin
=
"
\n
LEFT JOIN "
.
$column
->
refTableName
.
" rt ON rt."
.
$column
->
refColumnName
.
" = d."
.
$columnName
;
$depJoin
=
"
\n
LEFT JOIN "
.
$column
->
refTableName
.
" rt ON rt."
.
$column
->
refColumnName
.
" = d."
.
$columnName
;
// destruction ssi dans l'année d'import courante de la table référente
// destruction ssi dans l'année d'import courante de la table référente
$delCond
=
' AND rt.'
.
self
::
ANNEE_COLUMN_NAME
.
' = '
.
$this
->
getPackage
()
.
'.get_current_annee'
;
$delCond
=
' AND rt.'
.
self
::
ANNEE_COLUMN_NAME
.
'
>
= '
.
$this
->
getPackage
()
.
'.get_current_annee'
;
break
;
break
;
/* on stoppe à la première table contenant une année.
/* on stoppe à la première table contenant une année.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment