# ModifyQueryBeforeFetchingObjectDataEvent¶

TYPO3\CMS\Extbase\Event\Persistence\ModifyQueryBeforeFetchingObjectDataEvent

Event which is fired before the storage backend is asked for results from a given query.

## API¶

class TYPO3\CMS\Extbase\Event\Persistence\ModifyQueryBeforeFetchingObjectDataEvent

Event which is fired before the storage backend is asked for results from a given query.

getQuery()
Return type: TYPO3CMSExtbasePersistenceQueryInterface
setQuery(TYPO3CMSExtbasePersistenceQueryInterface query)
Parameters: \$query (TYPO3CMSExtbasePersistenceQueryInterface) – the query