diff --git a/module/Application/src/Application/Repository/AccountRepository.php b/module/Application/src/Application/Repository/AccountRepository.php index 2ca0f1f2..d6d4806e 100644 --- a/module/Application/src/Application/Repository/AccountRepository.php +++ b/module/Application/src/Application/Repository/AccountRepository.php @@ -80,11 +80,11 @@ public function getByUsage(int $userId): array $qb = $this->getEntityManager()->createQueryBuilder() ->select('a') ->from(Account::class, 'a') - ->leftJoin('a.movements', 'm') +// ->leftJoin('a.movements', 'm') ->where('a.user=:userId') ->andWhere('a.status<>:status') - ->groupBy('m.account') - ->orderBy('COUNT(m.account)', 'DESC') +// ->groupBy('m.account') +// ->orderBy('COUNT(m.account)', 'DESC') ->setParameters([':status' => Account::STATUS_CLOSED, ':userId' => $userId]); return $qb->getQuery()->getResult();