[TYPO3-english] problem after update to 6.2 with extension
Markus Klein
klein.t3 at mfc-linz.at
Wed Mar 26 23:13:15 CET 2014
Hi!
So why do you have @inject and inject* methods?
Don't know if this breaks something or if this could work at all. Just looks a bit weird by reading.
Kind regards
Markus
------------------------------------------------------------
Markus Klein
TYPO3 CMS Active Contributors Team Member
> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
> bounces at lists.typo3.org] On Behalf Of andreas
> Sent: Wednesday, March 26, 2014 10:30 PM
> To: typo3-english at lists.typo3.org
> Subject: [TYPO3-english] Re: problem after update to 6.2 with extension
>
> hi philipp,
>
> > Did you clear all caches via the install tool?
>
> yes, i have cleared them, i deleted the cache-files from typo3temp too,
> checked the naming of all the classes.
>
> i do not know where the mistake shall be.
>
> i have reduced the controller to the minimum:
>
> <?php
> namespace Ct\CtGallery\Controller;
>
> class PictureController extends
> \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
>
> /**
> * pictureRepository
> *
> * @var \Ct\CtGallery\Domain\Repository\PictureRepository
> * @inject
> */
> protected $pictureRepository;
>
> /**
> * categoryRepository
> *
> * @var \Ct\CtGallery\Domain\Repository\CategoryRepository
> * @inject
> */
> protected $categoryRepository;
>
> /**
> * injectPictureRepository
> *
> * @param \Ct\CtGallery\Domain\Repository\PictureRepository
> $pictureRepository
> * @return void
> */
> public function
> injectPictureRepository(\Ct\CtGallery\Domain\Repository\PictureRepository
> $pictureRepository) {
> $this->pictureRepository = $pictureRepository;
> }
>
> /**
> * injectCategoryRepository
> *
> * @param \Ct\CtGallery\Domain\Repository\CategoryRepository
> $categoryRepository
> * @return void
> */
> public function
> injectCategoryRepository(\Ct\CtGallery\Domain\Repository\CategoryReposi
> tory $categoryRepository) {
> $this->categoryRepository = $categoryRepository;
> }
>
> /**
> * action list
> *
> * @return void
> */
> public function listAction() {
>
> \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($this-
> >categoryRepository->findByUid(12));
>
> \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($this-
> >pictureRepository->findByUid(12));
> }
> }
> ?>
>
> he goes into the list action and the part with the categoryRepository works
> but not with the pictureRepository.
>
> do you have an idea why?
>
> regards andreas
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list