error in list of products

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!
User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

error in list of products

Post by ahmed31916 » 21 Apr 2022, 07:18

Hello,

This code should get the list of products:
$manager = \Aimeos\MShop::create( app( 'aimeos.context' )->get(), 'index' );
$items = $manager->search( $manager->filter() );

but I got this (with no product array list)

Image

Note: I'm using the latest version of aimeos, the previous version work correctly.

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

Re: error in list of products

Post by aimeos » 21 Apr 2022, 10:18

The latest version of the map package introduces lazy loading and the items are only fetched if you iterate over the map or use any of it's methods.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
ahmed31916
Advanced
Posts: 148
Joined: 14 Apr 2022, 12:15

Re: error in list of products

Post by ahmed31916 » 21 Apr 2022, 10:56

where can I get it's methods??

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

Re: error in list of products

Post by aimeos » 21 Apr 2022, 11:16

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply