[Flow] Problems and Questions regarding own Persistence Backend

Christian Loock chl at vkf-renzel.de
Mon Jul 1 15:21:25 CEST 2013


Hi there,

I am trying to implement my own Persistence Backend in flow, using the 
Generic Persistence Manager, but there are some problems/questions that 
occured during implementation.

1. After a recent update, Flow tries to store data in a database (using 
Doctrine I suppose).
Changing the Persistence Manager now only seems to work when I Change it 
in the Global Objects.yaml
However, I want to use my own Backend only in my package. Here is my 
Objects.yaml in our package:


TYPO3\Flow\Persistence\PersistenceManagerInterface:
   className: 'TYPO3\Flow\Persistence\Generic\PersistenceManager'

TYPO3\Flow\Persistence\QueryResultInterface:
   scope: prototype
   className: 'TYPO3\Flow\Persistence\Generic\QueryResult'

TYPO3\Flow\Persistence\Generic\PersistenceManager:
   properties:
     backend:
       object: MyOwnBackend here

As i said, when i put this under the global Configuration, this works, 
but not on Package scope.

Is there anyway to use multiple Persistence Managers. I need to use 
both, doctrine and my own persistence in this project.


2. Is there any Documentation regarding persistence backends? Storing 
data seems to be straight forward. However, the loading of data seems a 
little bit more trick, or to be more precise: The way data needs to be 
returned by getObjectDataByQuery. I looked into the CouchDB backend but 
i cant really figure out what properties exactly do.


More information about the Flow mailing list