Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 801 Bytes

2020-12-09-remove-country-association-in-context-factory.md

File metadata and controls

14 lines (14 loc) · 801 Bytes
title issue author author_email author_github
Remove country association in context factory
NEXT-12815
OliverSkroblin
o.skroblin@shopware.com
OliverSkroblin

Core

  • Removed countries association in sales channel criteria which is used to fetch the sales channel in the \Shopware\Core\System\SalesChannel\Context\SalesChannelContextFactory

Upgrade Information

context.salesChannel.countries removed

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.