[TYPO3-mvc] own widget.paginate and f.widget.paginate throws error

Johannes C. Schulz - EnzephaloN IT-Solutions info at enzephalon.de
Fri Jun 17 14:54:09 CEST 2011


Hello Franz

Thanks!
I replaced it, but error is still there :-(
 

-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Franz Koch
Gesendet: Freitag, 17. Juni 2011 14:41
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] own widget.paginate and f.widget.paginate throws
error

Hey,

> $query->getQuerySettings()->setReturnRawQueryResult(true);

don't do that if you like to use the paginate widget or any other widget 
manipulating the queryResult. This will tell Extbase to return a plain 
array instead of the queryResultInterface. setReturnRawQueryResult 
should only be used if you don't intend to work with objects or use a 
custom SQL statement returning some fancy stuff not related to objects.

-- 
kind regards,
Franz Koch
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc




More information about the TYPO3-project-typo3v4mvc mailing list