[Flow] Setting up generic persistence does not work

Christian Müller christian.mueller at typo3.org
Fri Jul 5 18:47:51 CEST 2013


Hi,

Christian Loock wrote:
> Hi everyone,
>
> I got a little problem over here which I cant really figure out.
>
> I want to use Generic persistence with my own written backend.
>
> I set up my package's Object.yaml like this:
>
>
> TYPO3\Flow\Persistence\PersistenceManagerInterface:
> className: 'TYPO3\Flow\Persistence\Generic\'

Either this is cropped in my email or you didn't actually set the class.

>
> TYPO3\Flow\Persistence\QueryResultInterface:
> scope: prototype
> className: 'TYPO3\Flow\Persistence\Generic\QueryResult'
>
>
> (like it is described in the documentation at
> http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/Persistence.html#generic-persistence)
>
>
>
>
> However, regarding to this line:
>
> \TYPO3\Flow\var_dump($this->persistenceManager);
>
> I added in the Repository's create Query class to find out if generic
> persistence is used, it still uses doctrine at this place.

Did you clear caches fully?

Generally the Generic Persistence wasn't touched for quite some time. 
You might find some clues in the CouchDB package but I am not sure about 
that.

If you find something it would be great to share the information. 
Otherwise I would try it out on my installation.


Cheers,
Christian


More information about the Flow mailing list