[TYPO3-dev] how to change query settings in 7.6
Thomas Mammitzsch
thomas at visualworx.de
Wed Aug 16 13:14:01 CEST 2017
hi list,
i want to change query settings for the whole repository in 7.6. Calling
initializeObject doesnt seem to work anymore. Could not find an
up-to-date approach on this topic.
public function initializeObject() {
/** @var $querySettings
\TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings */
$querySettings =
$this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings');
$querySettings->setIgnoreEnableFields(true);
$this->setDefaultQuerySettings($querySettings);
}
Thanks and regards,
Thomas
More information about the TYPO3-dev
mailing list