Loading src/UnicaenSynchro/Service/Synchronisation/SynchronisationService.php +4 −1 Original line number Diff line number Diff line Loading @@ -110,12 +110,15 @@ class SynchronisationService }, $separatorValuesDestination) )); sort($separatorValues); $nbSeperator = count($separatorValues); $position = 1; foreach ($separatorValues as $separatorValue) { echo "Traitement " . $separatorValue . "\n"; echo "Traitement " . $separatorValue . "(".$position."/".$nbSeperator.")\n"; $data_source = $this->getSqlHelperService()->fetch($orm_source, $table_source, $correspondance, 'source', $id_source, $separatorSource, $separatorValue); $data_destination = $this->getSqlHelperService()->fetch($orm_destination, $table_destination, $correspondance, 'destination', $id_destination, $separatorSource, $separatorValue, $source); echo count($data_source) . " entrées dans les données sources.\n"; $this->doSynchronisation($name, $data_source, $data_destination); $position++; } } else { $data_source = $this->getSqlHelperService()->fetch($orm_source, $table_source, $correspondance, 'source', $id_source); Loading Loading
src/UnicaenSynchro/Service/Synchronisation/SynchronisationService.php +4 −1 Original line number Diff line number Diff line Loading @@ -110,12 +110,15 @@ class SynchronisationService }, $separatorValuesDestination) )); sort($separatorValues); $nbSeperator = count($separatorValues); $position = 1; foreach ($separatorValues as $separatorValue) { echo "Traitement " . $separatorValue . "\n"; echo "Traitement " . $separatorValue . "(".$position."/".$nbSeperator.")\n"; $data_source = $this->getSqlHelperService()->fetch($orm_source, $table_source, $correspondance, 'source', $id_source, $separatorSource, $separatorValue); $data_destination = $this->getSqlHelperService()->fetch($orm_destination, $table_destination, $correspondance, 'destination', $id_destination, $separatorSource, $separatorValue, $source); echo count($data_source) . " entrées dans les données sources.\n"; $this->doSynchronisation($name, $data_source, $data_destination); $position++; } } else { $data_source = $this->getSqlHelperService()->fetch($orm_source, $table_source, $correspondance, 'source', $id_source); Loading