Skip to content

Commit

Permalink
fixed wrong max number from bank payment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lung committed Dec 12, 2023
1 parent 58c43b0 commit d848783
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Orm/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ public function findBy(array $criteria, array $orders = []): array

/**
* @param array<string,Entity|Relation|bool|int|float|string> $criteria
* @param Order[] $orders
*/
public function findOneBy(array $criteria): ?Entity
public function findOneBy(array $criteria, array $orders = []): ?Entity
{
$qb = $this->createFluent();
$this->addConditions($qb, $criteria);
$this->addOrdersBy($qb, $orders);

/** @var ?Row $row */
$row = $qb->fetch();
Expand Down

0 comments on commit d848783

Please sign in to comment.