Commit 4b67ef3d authored by Florian Joriot's avatar Florian Joriot
Browse files

Ajout d'un recalcul des ids de structure apres synchro

parent 2cd77d7d
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ namespace Administration\Command;
use Application\Provider\Role\RoleProvider;
use Application\Service\Traits\AffectationServiceAwareTrait;
use Doctrine\Common\Cache\FilesystemCache;
use Lieu\Service\StructureServiceAwareTrait;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
@@ -21,6 +22,7 @@ class SynchronisationCommand extends Command
{
    use ImportProcessusAwareTrait;
    use AffectationServiceAwareTrait;
    use StructureServiceAwareTrait;

    protected function configure(): void
    {
@@ -56,8 +58,13 @@ class SynchronisationCommand extends Command
            //Suppresion du cache des affectations
            $io->writeln("Suppression du cache doctrine des affectations");
            $this->getServiceAffectation()->deleteCacheAffectation();

            // Traitements supplémentaires
            $this->getServiceStructure()->updateStructures();
        }



        return Command::SUCCESS;
    }