[TYPO3-mvc] bind a foreign database to a repository

Xavier Perseguers xavier at typo3.org
Thu Jan 26 11:01:53 CET 2012


Hi,

>> http://xavier.perseguers.ch/en/tutorials/typo3/articles/ldap-backend-for-extbase.html
>>
> Very cool information. I can't believe that this works. Isn't there a
> loop? You tell extbase by TS to use your own class instead of
> BackendInterface. But in your class you implement BackendInterface.
> 
> Further I don't know where the link between Repository and your class
> is? Why does your Repository calls the LDAP-Backend and not the
> storageBackend? What about all the other queries regarding
> cf_extbase_tables? Which Backend will they use?
> Maybe it will be clearer when I just start programming :-)

This is what I wrote here:

>> Combining that with the code from the standard TYPO3 DB backend should
>> not be too complicated. BUT: I did not try very hard but could not
>> configure 2 different backends...

My tutorial shows how to change the backend "globally" with the extbase
configuration option. I tried (very very quickly) to do it for my plugin
only but it did not work. When configuring globally, all your Extbase
queries are routed to LDAP then...

-- 
Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-project-typo3v4mvc mailing list