Is there a way to use a manager to get records from all sites?
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 16
- Joined: 06 Jun 2024, 04:34
Is there a way to use a manager to get records from all sites?
I have a question, is there a way to get items from all sites? For example how could I get all the attributes or attributes from specific sites. Do I need to use sql since managers require a context and will only retrieve data specific to that site/that tree of sites?
Re: Is there a way to use a manager to get records from all sites?
The records of the sites are strictly separated and by using the managers, you can only get records from other sites by using the correct locale in the context item. The marketplace / complex B2B extension of the Aimeos company extends that so you can build a tree structure of sites and get records from parent or child sites too.
What is your setup of sites (SaaS or marketplace) and which items do you want to fetch for which reasons?
What is your setup of sites (SaaS or marketplace) and which items do you want to fetch for which reasons?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 16
- Joined: 06 Jun 2024, 04:34
Re: Is there a way to use a manager to get records from all sites?
I have multiple aimeos multisite setups on different servers and an application that wants to get specific data from all of them, I just was thinking there was an easier way than switching contexts or running sqls but yea seems like sql is the choice here.
Wanted to basically run a laravel job that sends the data in specific conditions.
Wanted to basically run a laravel job that sends the data in specific conditions.
Re: Is there a way to use a manager to get records from all sites?
In that case, you need to use SQL statements to get the data as the managers won't allow you to fetch items across unrelated sites.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star