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 2

History 511

  1. Markus Klein commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-04-09T14:40:08+00:00" > 04/09/25, 14:40 </span>

    Applied in changeset commit:c48491cc0bf430b65a4323735e1d2ac720b1379a.