From 72e0b8869a092724c9e3d30fbd0eb0121bf73d57 Mon Sep 17 00:00:00 2001 From: Sarai Misidjan Date: Thu, 9 Nov 2023 15:59:57 +0100 Subject: [PATCH] add organisation to repository --- src/Service/FindGithubRepositoryThroughOrganizationService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Service/FindGithubRepositoryThroughOrganizationService.php b/src/Service/FindGithubRepositoryThroughOrganizationService.php index e6edaada..c79c81a5 100644 --- a/src/Service/FindGithubRepositoryThroughOrganizationService.php +++ b/src/Service/FindGithubRepositoryThroughOrganizationService.php @@ -256,7 +256,9 @@ public function getOrganisationRepo(string $url, ObjectEntity $organization, str $component && $component->setValue('usedBy', [$organization]); } + $repositoryObject->setValue('organisation', $organization); $this->entityManager->persist($repositoryObject); + $this->entityManager->flush(); return $repositoryObject;