[Flow] Setting up generic persistence does not work
Christian Loock
chl at vkf-renzel.de
Fri Jul 5 09:12:32 CEST 2013
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\'
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.
chl at oxidford:/home/www/chl.search$ ./flow search:test
Flow Variable Dump
TYPO3\Flow\Persistence\Doctrine\PersistenceManager singleton object proxy
Flow Variable Dump
TYPO3\Flow\Persistence\Doctrine\Query prototype object proxy
I also tried adding my settings to the global Objects.yaml . No changes.
I also set:
Flow:
persistence:
doctrine:
enable: FALSE
Even though, it shouldnt really affect the injection of the classes i
set up in my Objects.yaml, right?
Any hints regarding this?
More information about the Flow
mailing list