Page 1 of 1

Feteching data from repository

Posted: 24 Mar 2017, 13:10
by NewUser
I would need to fetch certain details from mshop_catalog and mshop_product tables. Can I get the repository names of these for object injection??

Re: Feteching data from repository

Posted: 24 Mar 2017, 13:37
by aimeos
Aimeos doesn't use ExtBase for managing and retrieving data. That wouldn't be portable and too slow.
Instead, you should use the Aimeos managers to get the data you need:
https://aimeos.org/docs/Developers/Libr ... ging_items

To get the necessary Aimeos context in TYPO3, use

Code: Select all

$config = \Aimeos\Aimeos\Base::getConfig();
$context = \Aimeos\Aimeos\Base::getContext($config);
or if you extend from "Aimeos\Aimeos\Controller\AbstractController":

Code: Select all

$this->getContext();

Re: Feteching data from repository

Posted: 24 Mar 2017, 13:57
by NewUser
Thank you. It was helpful.