diff --git a/app/Repositories/OrganizationRepository.php b/app/Repositories/OrganizationRepository.php index 1f7bfc5..4024a38 100644 --- a/app/Repositories/OrganizationRepository.php +++ b/app/Repositories/OrganizationRepository.php @@ -14,7 +14,7 @@ public function findByUser( int $page = null ) { $query = $this->createQueryBuilder('o') - ->select('o, ou') + ->select('o') ->join('o.organizationUsers', 'ou', 'WITH', "ou.user = {$user->getId()}") ->orderBy("o.$orderBy", $order) ->getQuery();