Managers item

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
yong
Posts: 43
Joined: 10 Apr 2019, 12:55

Managers item

Post by yong » 22 Apr 2019, 15:33

I extended the managers items for the product domain ( the only thing i add is a new column ) but now after getting item by manager->getItem() for the catalog domain manager the ->getRefItems('product') dont show anything !

User avatar
aimeos
Administrator
Posts: 7835
Joined: 01 Jan 1970, 00:00

Re: Managers item

Post by aimeos » 23 Apr 2019, 08:32

You have to pass the name of the referenced items that should be loaded:

Code: Select all

$catItem->getItem( 123, ['product'] );
Be aware that it can be slow if you have a lot of products associated to the category.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply