Fix resultSet size when using a Repository
When using a Repository, the $limit parameter was lost along the way. This is why the limit was always set to 10 in that case.
This commit is contained in:
parent
60d3ef69f3
commit
93c0f608c2
|
@ -18,9 +18,9 @@ class Repository
|
|||
}
|
||||
|
||||
|
||||
public function find($query)
|
||||
public function find($query, $limit=null)
|
||||
{
|
||||
return $this->finder->find($query);
|
||||
return $this->finder->find($query, $limit);
|
||||
}
|
||||
|
||||
public function findPaginated($query)
|
||||
|
|
Loading…
Reference in a new issue