This limitation is probably fixed in `master`, though you'd have to try it
out and see for yourself if it applies.

See http://www.doctrine-project.org/2015/01/25/orm-2-5-0-alpha-2.html

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 29 January 2015 at 02:59, Ualison Aguiar <[email protected]>
wrote:

> 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.
>

-- 
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