Loading src/UnicaenSynchro/Service/Synchronisation/SynchronisationService.php +10 −0 Original line number Diff line number Diff line Loading @@ -78,7 +78,17 @@ class SynchronisationService $correspondance = $this->getFromConfig($name, 'correspondance'); $orm_source = $this->entityManagers[$this->getFromConfig($name, 'orm_source')]; if ($orm_source === null) { echo "\033[31m\033[1mPas d'ORM source\033[0m\n"; echo "La synchronisation [".$name."] n'a pas d'ORM source [".$this->getFromConfig($name, 'orm_source')."]\n"; exit(404); } $orm_destination = $this->entityManagers[$this->getFromConfig($name, 'orm_destination')]; if ($orm_destination === null) { echo "\033[31m\033[1mPas d'ORM destination\033[0m\n"; echo "La synchronisation [".$name."] n'a pas d'ORM destination [".$this->getFromConfig($name, 'orm_destination')."]\n"; exit(404); } $table_source = $this->getFromConfig($name, 'table_source'); $table_destination = $this->getFromConfig($name, 'table_destination'); $id_source = $this->getFromConfig($name, 'id'); Loading Loading
src/UnicaenSynchro/Service/Synchronisation/SynchronisationService.php +10 −0 Original line number Diff line number Diff line Loading @@ -78,7 +78,17 @@ class SynchronisationService $correspondance = $this->getFromConfig($name, 'correspondance'); $orm_source = $this->entityManagers[$this->getFromConfig($name, 'orm_source')]; if ($orm_source === null) { echo "\033[31m\033[1mPas d'ORM source\033[0m\n"; echo "La synchronisation [".$name."] n'a pas d'ORM source [".$this->getFromConfig($name, 'orm_source')."]\n"; exit(404); } $orm_destination = $this->entityManagers[$this->getFromConfig($name, 'orm_destination')]; if ($orm_destination === null) { echo "\033[31m\033[1mPas d'ORM destination\033[0m\n"; echo "La synchronisation [".$name."] n'a pas d'ORM destination [".$this->getFromConfig($name, 'orm_destination')."]\n"; exit(404); } $table_source = $this->getFromConfig($name, 'table_source'); $table_destination = $this->getFromConfig($name, 'table_destination'); $id_source = $this->getFromConfig($name, 'id'); Loading