The DQL request I found with the deboguer is
SELECT q, sc, d
FROM ECT\Entity\entity q
INNER JOIN q.entity2 sc
INNER JOIN q.entity3 d
ORDER BY q.id asc
then my php code is :
$paginator = new ZendPaginator(new PaginatorAdapter(new
ORMPaginator($qb->getQuery())));
$paginator->setCurrentPageNumber($page);
$paginator->setItemCountPerPage($paginator->getTotalItemCount());
and it crash on the next line :
foreach ($paginator->getCurrentItems() as $question){...}
I'm maintaining a website that I did not create so there might some code
that I am not aware of.
My guess was that as we do a first request for the screen.
Doctrine would save the ids that would match my request and would use it in
my export request.
I use the same php code to call Doctrine the screen and export request.
Le mardi 26 janvier 2016 10:11:20 UTC+1, Christophe COEVOET a écrit :
>
> Le 26/01/2016 09:50, Pat Tryçias a écrit :
> > Good morning,
> >
> > I understand that's an Oracle limitation.
> > But I don't understand why Doctrine2 add this in criteria.
> > It doesn't make sense to me.
> > I'd like to ask Doctrine to not use this criteria in this case.
> >
> > So why Doctrine do this ?
> > And how to ask Doctrine to avoid this ?
> >
> > Kind regards,
> > Tryçias
> Doctrine itself won't add such criteria according to the DQL query you
> showed us.
> This could be added for several reasons though:
> - you made another change in the QueryBuilder in a piece of code not
> displayed in your code snippet
> - you use some kind of doctrine extensions altering queries being made
>
> As you pasted only a very small extract of the code involved in the
> failed query, there is no way to identify the issue.
>
> --
> Christophe | Stof
>
>
--
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 https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.