Exemplo n.º 1
0
 public function resetSession()
 {
     //Ré-init sync
     if ($this->session->has(self::SESSION_PARAMETERS_KEY)) {
         $this->session->remove(self::SESSION_PARAMETERS_KEY);
     }
     if ($this->session->has(self::SESSION_FROM_KEY)) {
         $this->session->remove(self::SESSION_FROM_KEY);
     }
     if ($this->session->has(self::SESSION_TO_KEY)) {
         $this->session->remove(self::SESSION_TO_KEY);
     }
     if ($this->session->has(self::SESSION_WEIGHT_COLLECTION_KEY)) {
         $this->session->remove(self::SESSION_WEIGHT_COLLECTION_KEY);
     }
     $this->parameters = new Parameters();
     $this->parameters->setMaxNbLinesToInsert(1000);
     $this->parameters->setManagerFrom('prod');
     $this->parameters->setManagerTo('preprod');
     $this->parameters->setTestSchema(true);
     $this->parameters->setInsertData(false);
     $this->parameters->setSyncChild(false);
 }