[TYPO3-mvc] How to manually overwrite storagePid for certain repositories?

roberto blanko robertoblanko at gmail.com
Fri May 21 17:53:19 CEST 2010


Hello guys and girls (are there any?),

I am currently developing my 3rd extbased (love that adjective) extension
and in the process of every single one of them, I stumble over problems with
storagePid and repositories.

Theres actually only one storagePid for all repositories within one
controller. My controllers are using multiple repositories with different
record types in different storagePids. One problem for example is: No matter
witch add() method of which repository I'm calling, the first storagePid (in
the starting point selection of the plugin) is inserted to the freshly
created record.

So my question is: Is there any way to overwrite the pid for a whole
repository object? I'd like to define multiple storgePids within TypoScript
and assign these to their according repositories. Therefore I would avoid
many headaches.

Thanks again for your support!

Regards
Roberto


More information about the TYPO3-project-typo3v4mvc mailing list