Le 26/01/2016 15:16, Pat Tryçias a écrit :
Why Doctrine don't use thoses methode ?
             ->setFirstResult($offset)
             ->setMaxResults($itemCountPerPage);

To me, pagination should not use a IN over an id list.

It uses them when you tell the paginator that there is no collection field being fetch joined in the DQL query. But by default, it cannot make this assumption, and using them would break the result when there is a collection being fetched joined (as a single entity in the results would require multiple rows in the SQL results)

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

Reply via email to