26 $source = $this->sourceRepository->findByCode($sourceCode);
30 $source = Factory::makeSource($sourceCode);
31 $source->setName($sourceCode);
38 $res = $this->sourceRepository->save($source);
40 if(!$res->isSuccess())
42 $result->addErrors($res->getErrors());
45 SourceCodePicker::setSourceCode($sourceCode);