From d64b91eabd24af153b33a1d39eb93e0829a44ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Proch=C3=A1zka?= Date: Mon, 28 Oct 2013 16:27:27 +0100 Subject: [PATCH] Removed check for result set modification from applyPaging --- src/Kdyby/Doctrine/ResultSet.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Kdyby/Doctrine/ResultSet.php b/src/Kdyby/Doctrine/ResultSet.php index 652c19f9..d3fdd7fe 100644 --- a/src/Kdyby/Doctrine/ResultSet.php +++ b/src/Kdyby/Doctrine/ResultSet.php @@ -118,10 +118,6 @@ public function applySorting($columns) */ public function applyPaging($offset, $limit) { - if ($this->paginatedQuery !== NULL) { - throw new InvalidStateException("Cannot modify result set, that was already fetched from storage."); - } - $this->query->setFirstResult($offset); $this->query->setMaxResults($limit);