Skip to content
Snippets Groups Projects
Commit 1b9d3153 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Mapping des colonnes 'synchro_*_enabled' de la table SOURCE

parent 3d88fec7
Branches
Tags
No related merge requests found
......@@ -24,10 +24,10 @@ abstract class AbstractSource implements SourceInterface
*/
protected $importable;
/**
* @var boolean
*/
protected bool $synchroDeleteInterdit = false;
protected bool $synchroInsertEnabled = true;
protected bool $synchroUpdateEnabled = true;
protected bool $synchroUndeleteEnabled = true;
protected bool $synchroDeleteEnabled = true;
/**
* @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->synchroDeleteInterdit;
return $this->synchroInsertEnabled;
}
/**
* @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->synchroDeleteInterdit = $synchroDeleteInterdit;
$this->synchroDeleteEnabled = $synchroDeleteEnabled;
}
/**
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment