[TYPO3-english] Re: problem after update to 6.2 with extension
andreas
an.pfeiffer at gmail.com
Wed Mar 26 22:29:57 CET 2014
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\CategoryRepository $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
More information about the TYPO3-english
mailing list