[TYPO3-mvc] Repository ->update with TYPO3 4.7.6 / 4.7.7
Oliver Klee
typo3-german-02 at oliverklee.de
Fri Nov 30 12:39:17 CET 2012
Hi,
Am 30.11.2012 11:28, schrieb Valentin Zickner:
> I solved the problem. This problem occures, when you do not use
> dependency injection (in your own extension).
>
> In this old extension, I used the old way:
> $this->repo = t3lib_div::makeInstance('Tx_...Repository');
>
> In this case, the repository can not use dependency injection and this
> error occures. So it is neccessary to use dependency injection for
> repositories in TYPO3 4.7.6 and later.
Maybe dependency injection is not really necessary, but probably using
the object manager (instead of makeInstance) is so that the repository
gets its dependencies properly injected.
Oli
--
Certified TYPO3 Integrator | TYPO3 Security Team Member
More information about the TYPO3-project-typo3v4mvc
mailing list