[TYPO3-mvc] Discussion: findAll() and findByUid() should not respect storage pid

Xavier Perseguers typo3 at perseguers.ch
Tue Sep 22 12:27:12 CEST 2009


Hi Sebastian,

> I just answered your bug report at
> http://forge.typo3.org/issues/show/4724 .
> 
> Essentially I'd just do the following inside your repository:
> 
> public function findAllWithoutPidRestriction() {
>     $query = $this->createQuery();
>     $query->getQuerySettings()->setRespectStoragePage(FALSE);
>     return $query->execute();
> }
> 
> Somehow I was too blind for the obvious solution yesterday :-)

Yes, and as I replied, you found a better way for my "fall-back" 
solution which is perfect, but which does not solve the initial problem 
of having to filter by storagePid in my real-life use-case.

-- 
Xavier Perseguers
MVC ExtJS Leader

http://forge.typo3.org/projects/show/extension-mvc_extjs


More information about the TYPO3-project-typo3v4mvc mailing list