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:
Schyzophrenic 2012-08-05 02:35:32 +03:00
parent 60d3ef69f3
commit 93c0f608c2

View file

@ -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)