[TYPO3-mvc] $this->defaultQuerySettings->setRespectEnableFields(FALSE) - No effect

Daniel Frey Daniel_Fr at gmx.de
Fri Sep 7 09:35:26 CEST 2012


Hi List,

for my extension, I'm dealing a lot with entries that are hidden. Unfortunately I cannot use the default actions to edit, update and delete, because it cannot deal with hidden objects. So I'm trying to set the RespectEnableFields to false for the whole repository, but it has no effect meaning hidden posts are still not found. In my custom repository methods I use $query->getQuerySettings()->setRespectEnableFields(false); which is working fine.

Here's my code for the repositories' initialize Object. Something wrong with that? (Extbase 1.3.3 Typo3 v 4.5.17)


public function initializeObject() {
	$this->defaultQuerySettings = $this->objectManager->create('Tx_Extbase_Persistence_Typo3QuerySettings');
	$this->defaultQuerySettings->setRespectEnableFields(FALSE);
	$this->defaultQuerySettings->setRespectStoragePage(FALSE);
	}

Kind Regards,
Daniel



More information about the TYPO3-project-typo3v4mvc mailing list