[FLOW3-general] Question about change in Query object since Alpha12

Martin Kutschker masi-no at spam-typo3.org
Tue Oct 12 16:38:04 CEST 2010


Am 12.10.2010 11:55, schrieb Sebastian Fischer:
> Hi everyone,
> 
> i red in the release note the following:
> 
> The count() method has been removed from the Query class and is now expected to be used on the query
> result, so that each $query->count() now should read $query->execute()->count().

If I understand Sebastian's answer correctly the count is done with an SQL count(). Good. But the
PHP syntax makes you believe that the query is executed twice (or does the array counting in PHP).
IMHO this is not good. The API should be as obvious as possible.

Masi


More information about the FLOW3-general mailing list