Skip to content

Commit

Permalink
MKGO-37
Browse files Browse the repository at this point in the history
Log QueryBuilder Methods
  • Loading branch information
hmennen90 committed Feb 8, 2024
1 parent e96c29c commit 6f3b296
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions App/GambioConnectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@ protected function getEntitiesForExport(string $type): array

public function executeQuery(QueryBuilder $queryBuilder): array
{
$this->logger->debug("Available Query Builder Methods", [
get_class_methods($queryBuilder)
]);
return $queryBuilder->fetchAllAssociative();
}

private function getMakairaChangesForType(string $type): array
{
return $this->connection->createQueryBuilder()
return $this->executeQuery($this->connection->createQueryBuilder()
->select('gambio_id')
->from(ChangesService::TABLE_NAME)
->where('type = :type')
->setParameter('type', $type)
->executeQuery()
->fetchAllAssociative();
->setParameter('type', $type));
}

public function addMakairaDocumentWrapper(MakairaEntity $document, ?Language $language = null): array
Expand Down

0 comments on commit 6f3b296

Please sign in to comment.