[TYPO3-mvc] $query->statement('MYQUERY') doesn't count for <f:paginate />

Henjo Hoeksma me at henjohoeksma.nl
Thu Mar 1 13:31:21 CET 2012


Hi Dominic,

my first response would be: what is so special you need a handwritten
statement that cannot be dealt with by the Extbase methods?

;-)

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Thu, Mar 1, 2012 at 07:14, Domi <djgarms at gmail.com> wrote:

> Hello List,
>
> I just using the <f:paginate /> over an queryResult but have following
> error:
>
> Because of the use of
>
> $query->statement('MYQUERY WITH SOME WHERE CONDITIONS');
>
> If I make a count over $result->count() it counts all elements without my
> statement conditions. This results an incorrect <f:paginate />, because the
> count is wrong.
>
> How shall I deal with $query->statement(), that the count is right for the
> view?
>
> Thanks!
>
> Dominic
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list