Posted By

pogosheep on 05/24/11


Tagged

repository typo3 storage pid extbase


Versions (?)

TYPO3 Extbase Repository ignore storage pid


 / Published in: PHP
 

URL: http://forge.typo3.org/projects/typo3v4-mvc/wiki/Default_Orderings_and_Query_Settings_in_Repository

With this method you can overwrite the default settings. So extbase will ignore the storage pid.

  1. class Tx_MyExtension_Domain_Repository_FooRepository extends Tx_Extbase_Persistence_Repository {
  2. public function initializeObject() {
  3. $querySettings = $this->objectManager->create('Tx_Extbase_Persistence_Typo3QuerySettings');
  4. $querySettings->setRespectStoragePage(FALSE);
  5. $this->setDefaultQuerySettings($querySettings);
  6. }
  7. }

Report this snippet  

You need to login to post a comment.