Skip to content

Commit

Permalink
Revert "Merge pull request #174 from jasin755/patch-2"
Browse files Browse the repository at this point in the history
This reverts commit 03c2176, reversing
changes made to 9c2f7dd.
  • Loading branch information
fprochazka committed Nov 13, 2015
1 parent 1029b79 commit 022976d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Kdyby/Doctrine/QueryObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ public function fetch(Queryable $repository, $hydrationMode = AbstractQuery::HYD
public function fetchOne(Queryable $repository)
{
$query = $this->getQuery($repository)
->setFirstResult(NULL);
->setFirstResult(NULL)
->setMaxResults(1);

return $query->getSingleResult();
}
Expand Down

0 comments on commit 022976d

Please sign in to comment.