TYPO3 Extbase Repository ignore storage pid


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.