diff --git a/lib/Doctrine/ORM/QueryBuilder.php b/lib/Doctrine/ORM/QueryBuilder.php index 1e8d5653b..f29b7ced4 100644 --- a/lib/Doctrine/ORM/QueryBuilder.php +++ b/lib/Doctrine/ORM/QueryBuilder.php @@ -1047,7 +1047,7 @@ class QueryBuilder } // Overwrite limits only if they was set in criteria - if (($firstResult = $criteria->getFirstResult()) !== null) { + if (($firstResult = $criteria->getFirstResult()) !== null) { $this->setFirstResult($firstResult); } if (($maxResults = $criteria->getMaxResults()) !== null) {