[TYPO3-mvc] Counting in query

Sebastian Fischer typo3 at fischer.im
Fri Sep 18 07:16:16 CEST 2009


Hi Everyone,

how do i count results without really fetching the objects.

Currently i do the following:

function findAllCount() {
	$query = createQuery;
	$videos = $query->execute();

	return count($videos);
}

That's total foolish if you imagine 14000 objects. But i don't see how 
to do it in another way.


Greetings
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list