[TYPO3-dev] FlexForm with itemsProcFunc using ExtBase Repository
Xavier Perseguers
xavier at typo3.org
Fri May 9 13:41:06 CEST 2014
Hi Christian,
> $this->objectManager = TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Extbase\Object\ObjectManager')
> $this->trainerRepository = new Tx_Myclass_Domain_Repository_TrainerRepository();
Never ever use "new" (this is not "new" though) :)
$this->trainerRepository =
$this->objectManager->get('Tx_Myclass_Domain_Repository_TrainerRepository');
> $list = $this->trainerRepository->findAll($this->objectManager);
You should not need to pass anything to findAll()
Cheers
--
Xavier Perseguers
TYPO3 CMS Team Member
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-dev
mailing list