[TYPO3-mvc] Re: Repository in CommandController class not working properly

Klaus Hörmann klaus.hoermann at world-direct.at
Thu Apr 4 09:50:10 CEST 2013


Hi Lorenz

Thanks for your answer. Here is the TypoScript configuration for my fe plugin and the backend module.

plugin.tx_atmsearch {
	features {
		skipDefaultArguments = 1
	}
	view {
		templateRootPath = {$plugin.tx_atmsearch.view.templateRootPath}
		partialRootPath = {$plugin.tx_atmsearch.view.partialRootPath}
		layoutRootPath = {$plugin.tx_atmsearch.view.layoutRootPath}
	}
	persistence {
		storagePid = {$plugin.tx_atmsearch.persistence.storagePid}
	}
	settings {
		resultPageUid = {$plugin.tx_atmsearch.settings.resultPageUid}
		storagePid = {$plugin.tx_atmsearch.persistence.storagePid}
		uploadFolder = {$plugin.tx_atmsearch.settings.uploadFolder}
		processedFolder = {$plugin.tx_atmsearch.settings.processedFolder}
		emailReceiver = {$plugin.tx_atmsearch.settings.emailReceiver}
	}
}
module.tx_atmsearch < plugin.tx_atmsearch

First off I configure the frontend plugin. For the backend module the configuration is copied. Everything in the settings branch is accessible. But the persistense does not seem to be working.

When I call the repository method "countAll()" the debugged SQL is a follows:
SELECT  COUNT(*) FROM tx_atmsearch_domain_model_atm  WHERE tx_atmsearch_domain_model_atm.hidden=0 AND (tx_atmsearch_domain_model_atm.starttime<=1365061320) AND (tx_atmsearch_domain_model_atm.endtime=0 OR tx_atmsearch_domain_model_atm.endtime>1365061320) AND tx_atmsearch_domain_model_atm.deleted=0 AND (tx_atmsearch_domain_model_atm.sys_language_uid IN (0,-1)) AND tx_atmsearch_domain_model_atm.pid IN (1)

I see that the pid at the end of the query is 1, which is the root page of my page tree. But I dont know why.

Klaus


More information about the TYPO3-project-typo3v4mvc mailing list