Skip to content

Commit

Permalink
Merge branch 'hotfix/2.8.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiov committed Oct 3, 2021
2 parents cc70783 + c58219b commit 3efea06
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3efea06

Please sign in to comment.