#1188 - Importing parser class
This commit is contained in:
parent
64752532dd
commit
ac0f1b2ce2
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
namespace Doctrine\ORM\Tools\Pagination;
|
namespace Doctrine\ORM\Tools\Pagination;
|
||||||
|
|
||||||
|
use Doctrine\ORM\Query\Parser;
|
||||||
use Doctrine\ORM\QueryBuilder;
|
use Doctrine\ORM\QueryBuilder;
|
||||||
use Doctrine\ORM\Query;
|
use Doctrine\ORM\Query;
|
||||||
use Doctrine\ORM\Query\ResultSetMapping;
|
use Doctrine\ORM\Query\ResultSetMapping;
|
||||||
|
@ -258,7 +259,7 @@ class Paginator implements \Countable, \IteratorAggregate
|
||||||
|
|
||||||
$countQuery->setFirstResult(null)->setMaxResults(null);
|
$countQuery->setFirstResult(null)->setMaxResults(null);
|
||||||
|
|
||||||
$parser = new Query\Parser($countQuery);
|
$parser = new Parser($countQuery);
|
||||||
$parameterMappings = $parser->parse()->getParameterMappings();
|
$parameterMappings = $parser->parse()->getParameterMappings();
|
||||||
$parameters = $countQuery->getParameters();
|
$parameters = $countQuery->getParameters();
|
||||||
foreach ($parameters as $k => $param){
|
foreach ($parameters as $k => $param){
|
||||||
|
|
Loading…
Add table
Reference in a new issue