[TYPO3-mvc] storagePid in command controller

Normen Beck n.beck at webraum.de
Thu Jul 4 12:59:49 CEST 2013


Hi there,

after copying

module.tx_cme < plugin.tx_cme

i get the right storagePid into the command controller configuration. A 
call to

print_r($this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, 
'cme', 'cme'));

shows a correct value:

[persistence][storagePid] = 13

But, this value is ignored in my repository class:

$q = $this->createQuery();
echo 'storage page ids: ' . implode(', ', 
$q->getQuerySettings()->getStoragePageIds());

returns:

storage page ids: 1

By overriding the configuration with this command before accessing the 
repository, it works:

$this->configurationManager->setConfiguration(array('persistence' => 
array('storagePid' => 13)));

But i guess a "solution" like that will make more problems in the long run.

Any idea?

Thanks, Normen

TYPO3 6.1.1


More information about the TYPO3-project-typo3v4mvc mailing list