[TYPO3-mvc] How to use different repositories for a model?

Oliver Klee typo3-german-01 at oliverklee.de
Wed Nov 24 17:26:52 CET 2010


Hi all,

for a set of extensions, I'd like to use different repositories for one
model:

Tx_MyExt_Domain_Model_Foo would then either correspond to
Tx_MyExt_Domain_Repository_DatabaseFooRepository or
Tx_MyExt_Domain_Repository_WebServiceFooRepository.

I'd like to be able to tell the data mapper to use one of these
repositories when resolving relations to this model. (This also seems to
affect the update() and replace() functions of the repositories, but I
haven't dug into this yet.)

How can I configure extbase to use a particular repository for a model
(either via TS setup or via some PHP code)?

Thanks in advance,


Oli
-- 
Certified TYPO3 Integrator | TYPO3 Security Team Member


More information about the TYPO3-project-typo3v4mvc mailing list