Skip to content

fix: customer.language maps to shopId, not localeId - adding correct association#13

Open
PantherX99 wants to merge 3 commits into
shopware:trunkfrom
PantherX99:patch-1
Open

fix: customer.language maps to shopId, not localeId - adding correct association#13
PantherX99 wants to merge 3 commits into
shopware:trunkfrom
PantherX99:patch-1

Conversation

@PantherX99

Copy link
Copy Markdown

when migrating, unnecessary / unused languages are created. this is due to the mapping of customer.language which maps to the shopid and not the localeid.

this causes SWAG_MIGRATION_WRITE_EXCEPTION errors, because it assigns a wrong language id to the customer, so the customer cant be created and their order neither as well.

[/languageId] The language "019e88ab8071730686a04a88ca695f99" is not assigned to the sales channel. in /var/www/vhosts/c8yb4.creoline.cloud/httpdocs/vendor/shopware/core/Framework/DataAbstractionLayer/Write/WriteContext.php:46
Converted data (JSON):

/**

Id of the language sub shop
var string
Orm\Column(name="language", type="string", length=10, nullable=false)
*/
private $languageId = '1';

Added additional joins for customer language and shop ID mapping.
Added left joins to fetch customer locale IDs along with language. customer.language maps to shopID and not directly to localeID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contribution A PR contributed by a community member.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants