Skip to content

Commit 90d6948

Browse files
committed
Fix method ObjectRepository::searchAll()
1 parent ff64661 commit 90d6948

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ObjectRepository.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ public function findBy(DomainInterface $domain = null, array $orders = [], int $
9797
*/
9898
public function searchAll(array $orders = [], int $limit = null, int $offset = 0): array
9999
{
100-
return $this->search(null, $orders, $limit, $offset);
100+
return $this->objectManager
101+
->getClient()
102+
->searchAll($this->getModelName(), $this->prepareOptions($orders, $limit, $offset));
101103
}
102104

103105
public function searchOne(DomainInterface $domain, array $orders = [], int $offset = 0): ?int

0 commit comments

Comments
 (0)