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:43:52 +03:00
commit 3b391919c9

View file

@ -20,9 +20,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)