diff --git a/app/Domain/Integrations/Integration.php b/app/Domain/Integrations/Integration.php index 5b12e7526..76b0821d8 100644 --- a/app/Domain/Integrations/Integration.php +++ b/app/Domain/Integrations/Integration.php @@ -126,7 +126,7 @@ public function withKeycloakClients(KeycloakClient ...$keycloakClients): self return $clone; } - public function withOrganizers(UiTdatabankOrganizer ...$organizers): self + public function withUiTdatabankOrganizers(UiTdatabankOrganizer ...$organizers): self { $clone = clone $this; $clone->organizers = $organizers; diff --git a/app/Domain/Integrations/Models/IntegrationModel.php b/app/Domain/Integrations/Models/IntegrationModel.php index fdf87f6a9..42fa70869 100644 --- a/app/Domain/Integrations/Models/IntegrationModel.php +++ b/app/Domain/Integrations/Models/IntegrationModel.php @@ -360,7 +360,7 @@ public function toDomain(): Integration ->get() ->map(fn (KeycloakClientModel $keycloakClientModel) => $keycloakClientModel->toDomain()) ->toArray() - )->withOrganizers( + )->withUiTdatabankOrganizers( ...$this->organizers() ->get() ->map(fn (UiTdatabankOrganizerModel $organizerModel) => $organizerModel->toDomain())