Fix DoctrineORMProvider::countObjects() using PHP_INT_MAX
This commit is contained in:
parent
05ab288051
commit
a800289481
1 changed files with 5 additions and 1 deletions
|
|
@ -7,12 +7,16 @@ class DoctrineORMProvider extends AbstractDoctrineProvider
|
|||
/**
|
||||
* Counts the objects of a query builder
|
||||
*
|
||||
* OMG this implementation is radical. Yes. There seems to be
|
||||
* no easy way to do that with Doctrine ORM 2.0.
|
||||
* Please tell me if you have a better idea.
|
||||
*
|
||||
* @param queryBuilder
|
||||
* @return int
|
||||
**/
|
||||
protected function countObjects($queryBuilder)
|
||||
{
|
||||
return $queryBuilder->count()->getQuery()->execute();
|
||||
return PHP_INT_MAX;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue