Hello Marco Pivetta.
When updating doctrine/orm as directed the bug no longer in the project
using paging.
Thank you for your help

2015-02-01 16:26 GMT-02:00 Marco Pivetta <[email protected]>:

> 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 a topic in the
> Google Groups "doctrine-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/doctrine-user/AZyudulmXWE/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>



-- 


 *Ualison Aguiar da Ponte Frota*

ZCE ZEND024915
[email protected]
(61) 8601-1959

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