Loading src/UnicaenDbImport/Entity/Db/AbstractSource.php +38 −14 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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; } /** Loading src/UnicaenDbImport/Entity/Db/Mapping/UnicaenDbImport.Entity.Db.AbstractSource.dcm.xml +4 −1 Original line number Diff line number Diff line Loading @@ -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> Loading Loading
src/UnicaenDbImport/Entity/Db/AbstractSource.php +38 −14 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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; } /** Loading
src/UnicaenDbImport/Entity/Db/Mapping/UnicaenDbImport.Entity.Db.AbstractSource.dcm.xml +4 −1 Original line number Diff line number Diff line Loading @@ -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> Loading