forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next-17107/cherry-picks-1' into '6.4.4.1'
NEXT-17107 - Cherry picks See merge request shopware/6/product/platform!6366
- Loading branch information
Showing
22 changed files
with
637 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...-4-1/2021-09-06-bugfix-autowiring-type-name-for-already-defined-repositories.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Bugfix autowiring type+name for already defined repositories | ||
issue: NEXT-17058 | ||
author: mynameisbogdan | ||
author_email: [email protected] | ||
author_github: mynameisbogdan | ||
--- | ||
# Core | ||
* Changed `Shopware\Core\Framework\DependencyInjection\CompilerPass\EntityCompilerPass` to add `registerAliasForArgument` for already defined repositories and move duplicated calls after try-catch. |
6 changes: 6 additions & 0 deletions
6
changelog/release-6-4-4-1/2021-09-08-fixed-theme-inheritance.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Fixed Theme Inheritance | ||
issue: NEXT-17059 | ||
--- | ||
# Storefront | ||
* Changed `ThemeService::mergeStaticConfig` to read correct config even on themes without own configFields. |
6 changes: 6 additions & 0 deletions
6
...lease-6-4-4-1/2021-09-09-fixed-price-field-serializer-percentage-calculation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Fixed PriceFieldSerializer percentage calculation | ||
issue: NEXT-17072 | ||
--- | ||
# Core | ||
* Changed `\Shopware\Core\Framework\DataAbstractionLayer\FieldSerializer\PriceFieldSerializer` to not divide by zero when calculating the percentage and allowing to decode data in the old format. |
8 changes: 8 additions & 0 deletions
8
...log/release-6-4-4-1/2021-09-10-add-missing-context-to-cartverifypersistevent.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Add missing context to CartVerifyPersistEvent | ||
issue: NEXT-17170 | ||
author_github: @Dominik28111 | ||
--- | ||
# Core | ||
* Added SalesChannelConext to `Shopware\Core\Checkout\Cart\Event\CartVerifyPersistEvent::__construct()`. | ||
* Added method `Shopware\Core\Checkout\Cart\Event\CartVerifyPersistEvent::setShouldPersist()`. |
35 changes: 35 additions & 0 deletions
35
changelog/release-6-4-4-1/2021-09-10-fixed-entity-reader-for-non-id-pks.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: Fixed EntitySearcher for PrimaryKeys other than `id` | ||
issue: NEXT-17105 | ||
--- | ||
# Core | ||
* Changed `\Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityDefinitionQueryHelper` to fix problem when entities have primary keys, where the storage name and the property name differs. | ||
* Deprecated reading entities with the storage name of the primary key, use the property name instead. | ||
___ | ||
# Upgrade Information | ||
|
||
## Deprecating reading entities with the storage name of the primary key fields | ||
|
||
When you added a custom entity definition with a combined primary key you need to pass the field names when you want to read specific entities. | ||
The use of storage names when reading entities is deprecated by now, please use the property names instead. | ||
The support of reading entities with the storage name of the primary keys will be removed in 6.5.0.0. | ||
|
||
### Before | ||
```php | ||
new Criteria([ | ||
[ | ||
'storage_name_of_first_pk' => 1, | ||
'storage_name_of_second_pk' => 2, | ||
], | ||
]); | ||
``` | ||
|
||
### Now | ||
```php | ||
new Criteria([ | ||
[ | ||
'propertyNameOfFirstPk' => 1, | ||
'propertyNameOfSecondPk' => 2, | ||
], | ||
]); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ramework/Test/DataAbstractionLayer/Field/TestDefinition/NonIdPrimaryKeyTestDefinition.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Shopware\Core\Framework\Test\DataAbstractionLayer\Field\TestDefinition; | ||
|
||
use Shopware\Core\Framework\DataAbstractionLayer\EntityDefinition; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\Flag\ApiAware; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\Flag\PrimaryKey; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\IdField; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\StringField; | ||
use Shopware\Core\Framework\DataAbstractionLayer\FieldCollection; | ||
|
||
class NonIdPrimaryKeyTestDefinition extends EntityDefinition | ||
{ | ||
public const ENTITY_NAME = 'non_id_primary_key_test'; | ||
|
||
public function getEntityName(): string | ||
{ | ||
return self::ENTITY_NAME; | ||
} | ||
|
||
public function since(): ?string | ||
{ | ||
return '6.0.0.0'; | ||
} | ||
|
||
protected function defineFields(): FieldCollection | ||
{ | ||
return new FieldCollection([ | ||
(new IdField('test_field', 'testField'))->addFlags(new ApiAware(), new PrimaryKey()), | ||
|
||
new StringField('name', 'name'), | ||
]); | ||
} | ||
} |
Oops, something went wrong.