[TYPO3-mvc] How to use the repository within a hook?

S.Korth s.korth at dms-arts.com
Thu Aug 12 10:59:27 CEST 2010


Steffen Ritter schrieb:
> Am 12.08.2010 10:48, schrieb S.Korth:
>> Now i need to update/delete some Objects.
> yes, why not :P
>> But why does the Update work for you?
> did you think of "calling" the persistAll()? at the end?
> 
>> The Update function also uses the "findBy...", or !?!
> 
> why should it?
> 
> I only can, tell that it works like a charme for me... cannot tell why, 
> all code I'm using I presented... My findXY methods for sure ignore 
> storage-pid.
> 
> What extbase version you are using? im on trunk at TYPO3 4.4.3-dev
> 
> regards
> 
> Steffen


Hey Steffen,

ich use Typo3 4.4.1 with its extbase and fluid (both versions 1.2.1).
Take a look at Christians Code:

http://forge.typo3.org/projects/extension-cz_simple_cal/repository/entry/trunk/Classes/Indexer/Event.php

He also uses updated/delete with an exec_*. I can try it again, 
yesterday it doesnt work for me :-(

Sascha


More information about the TYPO3-project-typo3v4mvc mailing list