[TYPO3-mvc] ObjectStorage triggers Exception while using Tx_Extbase_Persistence_Manager->persistAll()
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Aug 17 11:44:29 CEST 2011
Hi Hauke,
> What am I doing wrong?
>
> protected function updateVersorgungsbereiche(array $versorgungsbereiche)
> {
...
> $repo =
> t3lib_div::makeInstance('Tx_Gpqg_Domain_Repository_VersorgungsbereichRepository');
...
> $persistenceManager =
> t3lib_div::makeInstance('Tx_Extbase_Persistence_Manager');
> $persistenceManager->persistAll();
> }
which Extbase version are you using? As of Extbase 1.3 you have to use
the objectManager to instantiate your classes:
$this->objectManager->get('Tx_Gpgp_Domain_Repository_VersorgungsbereichReposiory');
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list