[TYPO3-mvc] Problem with extending of news extension
Stefan Kruse
besucher80 at gmx.de
Sat Jun 22 13:00:51 CEST 2013
Hi, i have some troubles with the news extension. When I inject the default
repository form news extension like:
/**
* newsRepository
*
* @var \Tx_News_Domain_Repository_NewsRepository
* @inject
*/
protected $newsRepository;
and then use the follow in my controller:
$news = $this->newsRepository->findAll();
I get all the news.
But when I want to inject my own Repository like:
/**
* newsRepository
*
* @var \SK\Tl24\Domain\Repository\NewsRepository
* @inject
*/
protected $newsRepository;.
I extend the newsRepository with my own Repository Class like:
namespace SK\Tl24\Domain\Repository;
class NewsRepository extends \Tx_News_Domain_Repository_NewsRepository {
..
}
And when I then use the follow in my controller:
$news = $this->newsRepository->findAll();
I get NULL.
Has somebody an idea why?
Cheers Stefan
More information about the TYPO3-project-typo3v4mvc
mailing list