Skip to content

Commit

Permalink
Removed check for result set modification from applyPaging
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Oct 28, 2013
1 parent 4ecd9c8 commit d64b91e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Kdyby/Doctrine/ResultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d64b91e

Please sign in to comment.