Feature #5149
Support counting objects in persistence queries
| Status: | Resolved | Start date: | 2009-10-27 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assigned To: | Karsten Dambekalns | % Done: | 100% |
|
| Category: | Persistence | |||
| Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 7 | |||
| PHP Version: | Complexity: | |||
| Has patch: |
Description
To count results currently something like this is needed:
function findAllCount() {
$query = createQuery;
$videos = $query->execute();
return count($videos);
}
We need something like:
function findAllCount() {
$query = createQuery;
return $query->count();
}
See #4991 for the original request on Extbase.
Associated revisions
[+API] FLOW3 (Persistence): The QueryInterface now has a count() method for low-overhead counting of objects. Resolves #5149.
History
#1 Updated by Karsten Dambekalns over 5 years ago
- Target version set to 1.0 alpha 7
#2 Updated by Karsten Dambekalns over 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r3532.