[TYPO3-english] Re: how to call repository to another controller
dilip mdl
dilip.mdl at live.com
Sat Feb 20 13:25:59 CET 2016
Hi Ivan,
Thanks for your reply. I am using typo3 7.6.2 and was using createQuery on repository to get the respective data.
Example.
I have written this function in ProductRepository and calling it in category controller using its inject but did get records even it has.
public function getProducts($cuid){
$Query = $this->createQuery();
$Query->matching($Query->equals('catid', $cuid));
return $Query->execute(true);
}
Thanks for your time...
Dilip
More information about the TYPO3-english
mailing list