[TYPO3-mvc] complex queries

Jochen Rau jochen.rau at typoplanet.de
Fri Apr 30 09:48:05 CEST 2010


Hi Cornelius.

On 29.04.10 00:22, Cornelius Illi wrote:
> Thanks everyone for support!
> However I got some problems when working with $query->statement():
> I also want to have the possibility to count rows (e.g. for pagination).
> I therefore have a Paginator-Class that gets a Query
> (*Tx_Extbase_Persistence_Query).

Maybe I did not get the point here, but why does

$query->statement('SELECT COUNT(*) FROM ....')->execute();

not work for you?

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list