Skip to content

Commit e08a397

Browse files
author
Ruslan Baidan
authored
Update ClientTable.php
Fixed the Clients fetching query.
1 parent 59adc4c commit e08a397

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Model/Table/ClientTable.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public function saveEntity(Client $client, bool $flushAll = true): void
5858
public function findTheClient(): Client
5959
{
6060
return $this->getRepository()->createQueryBuilder('client')
61+
->setMaxResults(1)
6162
->getQuery()
62-
->getOneOrNullResult();
63+
->getSingleResult();
6364
}
6465
}

0 commit comments

Comments
 (0)