Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
db-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
db-import
Commits
1b9d3153
Commit
1b9d3153
authored
Jul 12, 2023
by
Bertrand Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] Mapping des colonnes 'synchro_*_enabled' de la table SOURCE
parent
3d88fec7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/UnicaenDbImport/Entity/Db/AbstractSource.php
+38
-14
38 additions, 14 deletions
src/UnicaenDbImport/Entity/Db/AbstractSource.php
src/UnicaenDbImport/Entity/Db/Mapping/UnicaenDbImport.Entity.Db.AbstractSource.dcm.xml
+4
-1
4 additions, 1 deletion
.../Mapping/UnicaenDbImport.Entity.Db.AbstractSource.dcm.xml
with
42 additions
and
15 deletions
src/UnicaenDbImport/Entity/Db/AbstractSource.php
+
38
−
14
View file @
1b9d3153
...
...
@@ -24,10 +24,10 @@ abstract class AbstractSource implements SourceInterface
*/
protected
$importable
;
/**
* @var boolean
*/
protected
bool
$synchroDelete
Interdit
=
fals
e
;
protected
bool
$synchroInsertEnabled
=
true
;
protected
bool
$synchroUpdateEnabled
=
true
;
protected
bool
$synchroUndeleteEnabled
=
true
;
protected
bool
$synchroDelete
Enabled
=
tru
e
;
/**
* @var string
...
...
@@ -84,20 +84,44 @@ abstract class AbstractSource implements SourceInterface
return
$this
->
importable
;
}
/**
* @return bool
*/
public
function
getSynchroDeleteInterdit
():
bool
public
function
isSynchroInsertEnabled
():
bool
{
return
$this
->
synchro
DeleteInterdit
;
return
$this
->
synchro
InsertEnabled
;
}
/**
* @param bool $synchroDeleteInterdit
*/
public
function
setSynchroDeleteInterdit
(
bool
$synchroDeleteInterdit
=
true
):
void
public
function
setSynchroInsertEnabled
(
bool
$synchroInsertEnabled
):
void
{
$this
->
synchroInsertEnabled
=
$synchroInsertEnabled
;
}
public
function
isSynchroUpdateEnabled
():
bool
{
return
$this
->
synchroUpdateEnabled
;
}
public
function
setSynchroUpdateEnabled
(
bool
$synchroUpdateEnabled
):
void
{
$this
->
synchroUpdateEnabled
=
$synchroUpdateEnabled
;
}
public
function
isSynchroUndeleteEnabled
():
bool
{
return
$this
->
synchroUndeleteEnabled
;
}
public
function
setSynchroUndeleteEnabled
(
bool
$synchroUndeleteEnabled
):
void
{
$this
->
synchroUndeleteEnabled
=
$synchroUndeleteEnabled
;
}
public
function
isSynchroDeleteEnabled
():
bool
{
return
$this
->
synchroDeleteEnabled
;
}
public
function
setSynchroDeleteEnabled
(
bool
$synchroDeleteEnabled
):
void
{
$this
->
synchroDelete
Interdit
=
$synchroDelete
Interdit
;
$this
->
synchroDelete
Enabled
=
$synchroDelete
Enabled
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
src/UnicaenDbImport/Entity/Db/Mapping/UnicaenDbImport.Entity.Db.AbstractSource.dcm.xml
+
4
−
1
View file @
1b9d3153
...
...
@@ -7,7 +7,10 @@
<field
name=
"code"
column=
"CODE"
/>
<field
name=
"importable"
type=
"boolean"
column=
"IMPORTABLE"
/>
<field
name=
"synchroDeleteInterdit"
type=
"boolean"
column=
"SYNCHRO_DELETE_INTERDIT"
/>
<field
name=
"synchroInsertEnabled"
type=
"boolean"
column=
"SYNCHRO_INSERT_ENABLED"
/>
<field
name=
"synchroUpdateEnabled"
type=
"boolean"
column=
"SYNCHRO_UPDATE_ENABLED"
/>
<field
name=
"synchroUndeleteEnabled"
type=
"boolean"
column=
"SYNCHRO_UNDELETE_ENABLED"
/>
<field
name=
"synchroDeleteEnabled"
type=
"boolean"
column=
"SYNCHRO_DELETE_ENABLED"
/>
<field
name=
"libelle"
column=
"LIBELLE"
/>
</mapped-superclass>
...
...
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