[TYPO3-mvc] creating a repository from inside a scheduler task
Michiel Roos [netcreators]
michiel at netcreators.com
Fri Jul 23 15:55:12 CEST 2010
When I try to create an object repository from inside the scheduler:
Execution of task "Index Queue Worker (solr)" failed with the following
message: PHP Catchable Fatal Error: Argument 1 passed to
Tx_Extbase_Persistence_Mapper_DataMapFactory::injectReflectionService()
must be an instance of Tx_Extbase_Reflection_Service, null given, called
in
/Users/michiel/htdocs/sources/typo3_src-4.4.0/typo3/sysext/extbase/Classes/Dispatcher.php
on line 260 and defined in
/Users/michiel/htdocs/sources/typo3_src-4.4.0/typo3/sysext/extbase/Classes/Persistence/Mapper/DataMapFactory.php
line 45
Any tips?
I'm just doing:
class tx_NcgovVerseonris_Service_Solr_VergaderingIndexer extends
tx_solr_indexqueue_Indexer {
/**
* @var Tx_NcgovVerseonris_Domain_Repository_VergaderingRepository
*/
protected $vergaderingRepository = NULL;
/**
* Constructor
*/
public function __construct($options = array()) {
parent::__construct($options);
$this->vergaderingRepository =
t3lib_div::makeInstance('Tx_NcgovVerseonris_Domain_Repository_VergaderingRepository');
}
}
--
Met vriendelijke groet / Warm regards,
Michiel Roos
Chief Technical Officer
Netcreators: Open Source, Open Minds, Open People
More information about the TYPO3-project-typo3v4mvc
mailing list