From 3b391919c974f5b7c3ef4271626fa5e1c819934a Mon Sep 17 00:00:00 2001 From: Schyzophrenic Date: Sun, 5 Aug 2012 02:43:52 +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 75e30cd..58404b3 100644 --- a/Repository.php +++ b/Repository.php @@ -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)