[TYPO3-mvc] Using Repository outside extbase
Joerg Schoppet
joerg at schoppet.de
Sat Jul 11 23:49:16 CEST 2009
Hi,
actually I'm using an itemProcFunction to generate a custom menu.
within the function I instantiate an own Repository-Class.
Before the persistence-rewrite, I simple used:
$this->catRepository = t3lib_div::makeInstance('Tx_MyExample_Domain_Model_CatRepository');
Now I always get the following error:
Catchable fatal error: Argument 1 passed to Tx_Extbase_Persistence_Manager::__construct() must be an instance of Tx_Extbase_Persistence_BackendInterface, none given, called in /var/www/model/web/typo3_4.3svn/t3lib/class.t3lib_div.php on line 4828 and defined in /var/www/model/web/extbase/Classes/Persistence/Manager.php on line 59
How can I get this functionality re-enabled?
Joerg
More information about the TYPO3-project-typo3v4mvc
mailing list