[TYPO3-mvc] QueryResult object has issues with offsets and "count" method ?
Marc Bastian Heinrichs
typo3 at mbh-web.de
Fri Nov 19 12:53:54 CET 2010
Hi,
>> But usually that should not be the case. Why are you counting objects
>> with a limit query?
>
> I don't - FLUID does. Before I start rendering the objects in my
> template I check if there actually is a result like I wrote in my
> initial posting:
>
>> <f:if condition="{f:count(subject:exhibitors)}">
>> <f:then># some output</f:then>
>> <f:else>No exhibitors found</f:else>
>> </f:if>
>
> That was no big deal before where a array was returned by the
> repository, but with the queryResult object it now is.
jep, I can confirm the problem with LIMIT and COUNT. That's why my
favourite "migrating to extbase 1.3" additional code snippet is
"->toArray()". ;-)
Regards,
Marc Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list