[TYPO3-mvc] Repository with external database

Markus Hennerbichler markushennerbichler at gmail.com
Thu Feb 20 09:49:32 CET 2014


You have to override the BackendInterface in your TS-Setup.

like this:
config.tx_extbase.objects.TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface.className = Ws\FfPersons\Persistence\Generic\Storage\Backend


Quote: Henk Scholten wrote on Wed, 02 October 2013 17:31
----------------------------------------------------
> Hello Stephan,
> 
> I realy appreciate your help but my backend storage is not called.
> I think i made a mistake in my typoscript but i cant find the problem.
> Any idea?
> 
> Classes\Persistence\Generic\Storage\Backend.php
> 
> <?php
> namespace Ws\FfPersons\Persistence\Generic\Storage;
> 
> class Backend extends 
> \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend {
> 
> 	public function 
> getObjectDataByQuery(\TYPO3\CMS\Extbase\Persistence\QueryInterface $query) {
> 		echo 'hello world'; // I don't get this message
> 		exit;
> 	}
> 
> }
> 
> ?>
> 
> Configuration\TypoScript\setup.ts
> 
> plugin.tx_ffpersons {
> 	persistence {
> 		classes {
> 			Ws\FfPersons\Domain\Model\Person {
> 				mapping {
> 					columns {
> 						titles.mapOnProperty = titels_voor
> 					}
> 			}
> 		}
> 	}
> }
> 
> config.tx_extbase {
>   features.rewrittenPropertyMapper = 1
>  
> objects.TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.className 
> = Ws\FfPersons\Persistence\Generic\Storage\Backend
> }
> 
> Regards,
> Henk
> 


More information about the TYPO3-project-typo3v4mvc mailing list