[TYPO3-mvc]  Scheduler - Extbase repository
    Peter Falk 
    pefalk at gmail.com
       
    Sun Jul  7 13:05:03 CEST 2013
    
    
  
Hi group.
I'm trying to get an instance of a repository from within the execute 
function of a scheduler task.
Below is what I've done - with no luck. Don't know what i'm missing, but 
hope someone can help.
$this->objectManager = 
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase
\\Object\\ObjectManager');
$this->mediaRepository = 
$this->objectManager->get('TYPOCONSULT\\TcMediaPlayer\\Domain\\Repository
\\MediaRepository');
The objectManager instance is ok, but the mediaRepository instance is 
NULL
Regards
Peter
    
    
More information about the TYPO3-project-typo3v4mvc
mailing list