From 93c0f608c2383db0761dbc6660bdd09008936c3b Mon Sep 17 00:00:00 2001 From: Schyzophrenic Date: Sun, 5 Aug 2012 02:35:32 +0300 Subject: [PATCH] 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. --- Repository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Repository.php b/Repository.php index 44a42c8..b70166f 100644 --- a/Repository.php +++ b/Repository.php @@ -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)