Hello good night.
I'm having the following problem: "Can not count query Which selects two 
FROM components, can not make distinction"
This problem occurs when using the Doctrine \ ORM \ Tools \ Pagination in 
return getQuery the createQueryBuilder method.
Aimplementação follows:
            $queryBuilder = 'cliente';
            $query = $queryBuilder->select($strAlias.'.a902CodCliente 
codigoCliente')
                ->addSelect($strAlias.'.a902DsRazaoSocial nomeCliente')
                ->addSelect($strAlias.'.codPromotorVenda promotor')
                ->addSelect($strAlias.'.codAssistenteComercial assistente')
                ->addSelect($strAlias.'.a902Filial filial')
                ->from($this->getEntityName(), $strAlias)
                ->innerJoin(
                    'Cliente\Entity\T903ClienteEndereco',
                    'ClienteEndereco',
                    'WITH',
                    'ClienteEndereco.a902CodCliente = ' . $strAlias 
.'.a902CodCliente'
                )
                ->setMaxResults($intPage)
                ->setFirstResult($intPerPage)
                ->getQuery();
            $paginator = new Paginator($query);
            $paginator->setUseOutputWalkers(false);
            return $paginator;
Someone that is occurring this error?
thank you

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to