Skip to content

Commit

Permalink
OrderPaymentManager: Fix internal query.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Feb 10, 2022
1 parent eb3bf15 commit c6319da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Payment/OrderPaymentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ public function orderHasPaidByVariableSymbol(?int $number): bool
try {
$this->entityManager->getRepository(OrderOnlinePayment::class)
->createQueryBuilder('o')
->where('o.number = :number')
->setParameter('number', $number)
->leftJoin('o.order', 'realOrder')
->where('realOrder.number = :number')
->andWhere('o.status = :status')
->setParameter('number', $number)
->setParameter('status', OrderStatus::STATUS_PAID)
->getQuery()
->getSingleResult();
Expand Down

0 comments on commit c6319da

Please sign in to comment.