Issue Bug Closed

#106510Missing events for Backend::getObjectCountByQuery

Markus Klein 04/04/25, 11:36 updated 12/02/25, 14:22

Description

While \TYPO3\CMS\Extbase\Persistence\Generic\Backend::getObjectDataByQuery has events to modify the query, `getObjectCountByQuery` currently lacks those.
This causes inconsistent results when working with modified queries.

Example: We modify the query in getObjectDataByQuery due to some project-specific language oddities.
This causes the Fluid code <f:count({news})> to return zero news, whereas the <f:for each="{news}" .. loop happily renders the desired result.

Adding events for `getObjectCountByQuery` as well, allows us to keep the results consistent.

Reviews 1