Revision: 46774
Updated Code
at May 25, 2011 00:09 by pogosheep
Updated Code
class Tx_MyExtension_Domain_Repository_FooRepository extends Tx_Extbase_Persistence_Repository { public function initializeObject() { $querySettings = $this->objectManager->create('Tx_Extbase_Persistence_Typo3QuerySettings'); $querySettings->setRespectStoragePage(FALSE); $this->setDefaultQuerySettings($querySettings); } }
Revision: 46773
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 24, 2011 22:24 by pogosheep
Initial Code
/** * Constructor of the repository. * Sets the respect storage page to false. * @param Tx_Extbase_Object_ObjectManagerInterface $objectManager */ public function __construct(Tx_Extbase_Object_ObjectManagerInterface $objectManager = NULL) { parent::__construct($objectManager); $this->defaultQuerySettings = new Tx_Extbase_Persistence_Typo3QuerySettings(); $this->defaultQuerySettings->setRespectStoragePage(FALSE); }
Initial URL
http://forge.typo3.org/projects/typo3v4-mvc/wiki/Default_Orderings_and_Query_Settings_in_Repository
Initial Description
With this method you can overwrite the default settings. So extbase will ignore the storage pid.
Initial Title
TYPO3 Extbase Repository ignore storage pid
Initial Tags
Initial Language
PHP