[FLOW3-general] ->getQuery()->execute() fails

Ferdinand Kuhl fcool at coolys.de
Wed Aug 17 19:42:17 CEST 2011


One last (minor) issue:

->getQuery() does not longer returns (as the docstring says) a clone but the 
original query, which will be modified if one makes changes to the query 
object, which might be (as in my case) undesired. A "clone" solves this 
problem. Perhaps it would make to change the docstring? It is no clone but a 
pointer to the original query!

Greets,
Ferdinand

Sebastian Kurfürst wrote:

> Hey,
> 
> Are you sure you use the newest version?
> 
> I think I solved it with
> 
http://git.typo3.org/FLOW3/Packages/FLOW3.git?a=commit;h=237b0ac74d86ab207e1ee7c1715f7bf364cb2fa7
> 
> However, you should *not* need to call getQuery->execute() on the query
> result unless you have a very specific reason to do so.
> 
> Instead, you should think of the Query Result as *array*, and simply
> iterate over it using Foreach.
> 
> Greets,
> Sebastian



More information about the FLOW3-general mailing list