[TYPO3-mvc] How to use the repository within a hook?
S.Korth
s.korth at dms-arts.com
Wed Aug 11 15:57:57 CEST 2010
Christian Zenker schrieb:
> On Wed, 11 Aug 2010 15:07:17 +0200, S.Korth <s.korth at dms-arts.com> wrote:
>
>> I found this example here, but with my code it doesn't work (empty).
>>
>> http://forge.typo3.org/projects/extension-cz_simple_cal/repository/entry/trunk/Classes/Indexer/Event.php
>>
>
> The fetchEventObject() in the linked source does the trick. It calls a
> manually created findOneByUidEverywhere() method in the repository - and
> that's where the magic happens.
>
> The difficulty you are facing is the storagePid. Right now something
> like "WHERE ... AND pid IN (0)" is appended to all the SQL. You can
> unset the limitation to the storagePid by setting
> $query->getQuerySettings()->setRespectStoragePage(false); in the
> repository. This is done in the example, too - so just have a look.
>
> Christian.
Hey Christian,
thanks alot! I take a look at this. Did i understand that correct?
findAll() needs the storagePID, but didn't get it.
Ok, now i found this: http://forge.typo3.org/issues/4724
thx,
Sascha :-)
More information about the TYPO3-project-typo3v4mvc
mailing list