Doctrine/ORM/EntityRepository.php
public function getScalarPaginator(\Doctrine\ORM\QueryBuilder $queryBuilder)
    {
        $pagerfanta = new \Tecnocreaciones\Bundle\ToolsBundle\Model\Paginator\Paginator(new ArrayAdapter($queryBuilder->getQuery()->getScalarResult()));
        
        $pagerfanta->setContainer($this->container);
        return $pagerfanta;
    }
public function getScalarPaginator(\Doctrine\ORM\QueryBuilder $queryBuilder)
    {
        $pagerfanta = new \Tecnocreaciones\Bundle\ToolsBundle\Model\Paginator\Paginator(new ArrayAdapter($queryBuilder->getQuery()->getScalarResult()));
        
        $pagerfanta->setContainer($this->container);
        return $pagerfanta;
    }
Retorna un paginador con valores escalares (Sin hidratar)
@param \Doctrine\ORM\QueryBuilder $queryBuilder
@return \Tecnocreaciones\Bundle\ResourceBundle\Model\Paginator\Paginator