[TYPO3-mvc] injectReflectionService() recent change?
Xavier Perseguers
typo3 at perseguers.ch
Wed Oct 21 18:44:53 CEST 2009
Hi,
Could someone give me a hint how I should update my Repository classes as I now get this:
#1: PHP Catchable Fatal Error: Argument 1 passed to Tx_Extbase_Persistence_Mapper_DataMapper::injectReflectionService() must be an instance of Tx_Extbase_Reflection_Service, null given, called in
/path/to/extbase/Classes/Dispatcher.php on line 246 and defined in /path/to/extbase/Classes/Persistence/Mapper/DataMapper.php line 115
I used to define an abstract class extending Tx_Extbase_Persistence_Repository and having "parent::__construct()" in my constructor. I basically don't need any datamapper coming from Extbase as it
uses a legacy MSSQL database for which I created my own "data mapper".
I tried to do this:
public function __construct() {
$dispatcher = t3lib_div::makeInstance('Tx_Extbase_Dispatcher');
$dispatcher->initializeCache();
$dispatcher->initializeReflection();
parent::__construct();
...
}
but then I get another exception:
#1232044696: The Reflection Service can only be initialized once.
--
Xavier Perseguers
http://xavier.perseguers.ch/en
One contribution a day keeps the fork away
More information about the TYPO3-project-typo3v4mvc
mailing list