Hello Daivid, This is an English mailing list: could you re-write your question in English, please?
Greets, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 9 December 2015 at 07:45, Daivid Alves <[email protected]> wrote: > $queryString = 'select a,a.sessaoCliente, l from > Interesses\Entity\LojaInteresses a > join a.lojaProdutos l > where 1=1' . ((strlen($id) > 20) ? "and a.cookieCliente = :id > " : "and a.lojaClientes = :id") . 'group by l.id ORDER BY a.id DESC'; > > > Aqui é feito um order by na chave primária e é agrupado o l.id (id do > produto) > > utilizando o ->setMaxResults(2) para limitar o resultado. Mas não > recuperar o último id do produto. > > -- > 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.
