title | issue | author | author_email | author_github |
---|---|---|---|---|
Remove country association in context factory |
NEXT-12815 |
OliverSkroblin |
o.skroblin@shopware.com |
OliverSkroblin |
- Removed
countries
association in sales channel criteria which is used to fetch the sales channel in the\Shopware\Core\System\SalesChannel\Context\SalesChannelContextFactory
Previously, the sales channel object in the context contained all countries assigned to the sales channel. This data has now been removed. The access via $context->getSalesChannel()->getCountries()
therefore no longer returns the previous result.
To load the countries of a sales channel, the class \Shopware\Core\System\Country\SalesChannel\CountryRoute
should be used.