[TYPO3-mvc] Really strange behavior with $query->statement.
Braulio J. Solano-Rojas
braulio at solsoft.biz
Sun Aug 8 16:45:17 CEST 2010
El 07/08/2010 10:47 p.m., Braulio J. Solano-Rojas escribió:
> [Snip]
> $query->statement('SELECT tx_loginusertrack_pagestat.page_id,
> SUM(tx_loginusertrack_pagestat.hits) as hits
Returning the uid is mandatory, if not the query won't work as expected.
Working code:
$query->statement('SELECT tx_loginusertrack_pagestat.uid,
tx_loginusertrack_pagestat.page_id, SUM(tx_loginusertrack_pagestat.hits)
as hits
Best regards,
B.
More information about the TYPO3-project-typo3v4mvc
mailing list