Commit f76a8436 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

...

parent aeb9f058
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);