Skip to content

Commit 30686d8

Browse files
authored
Merge pull request #30 from vienthuong/1.4.0
Release 1.4.0
2 parents b6dc82f + 24e04d4 commit 30686d8

File tree

58 files changed

+880
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+880
-23
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to `shopware-php-sdk` will be documented in this file.
44

55
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
66

7+
### 1.4.0
8+
- Updated Latest DAL Classes
9+
- Added NotificationService to allow sending/getting notification from external app (success/error/warning/info)
10+
- Added UserConfigService to getting/saving admin's config
11+
- Added AdminSearchService to search for multiple entities as one request
12+
- Added more service's examples
13+
- Deprecated SystemConfigService::saveConfiguration, use SystemConfigService::save instead
14+
- Deprecated SystemConfigService::batchSaveConfiguration, use SystemConfigService::batchSave instead
15+
716
### 1.3.3
817
- [Use correct sync operator for syncDeleted](https://github.com/vienthuong/shopware-php-sdk/pull/16)
918
- [Remove extends HttpClient from GuzzleClient](https://github.com/vienthuong/shopware-php-sdk/issues/5)

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ If you're familiar with Shopware 6 DAL syntax and how to retrieve it you might s
1414

1515
![image](https://i.imgur.com/NyXy2db.png)
1616

17+
Or sending notification from external server
18+
![image](https://i.imgur.com/26LdTab.png)
19+
1720
## Installation
1821
Install with Composer
1922
```shell
@@ -25,6 +28,9 @@ composer require vin-sw/shopware-sdk
2528
- Admin API
2629
- CRUD API
2730
- Sync Api
31+
- User Config API
32+
- Notification API
33+
- Admin Search API
2834
- Other services
2935
- ... (TODO)
3036

@@ -165,6 +171,9 @@ new OpenModalResponse($shopSecret, $iframeUrl, OpenModalResponse::LARGE_SIZE, tr
165171
- [UserService](/src/Service/UserService.php)
166172
- [StateMachineService](/src/Service/StateMachineService.php)
167173
- [SyncService](/src/Service/SyncService.php)
174+
- [NotificationService](/src/Service/NotificationService.php)
175+
- [UserConfigService](/src/Service/UserConfigService.php)
176+
- [AdminSearchService](/src/Service/AdminSearchService.php)
168177
- For other services that does not have a concrete class, use: [AdminActionService](/src/Service/AdminActionService.php)
169178

170179
An ApiService requires a [Context](src/Data/Context.php) object as its first argument.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A PHP SDK for Shopware 6 Platform",
44
"type": "library",
55
"license": "MIT",
6-
"version": "1.3.3",
6+
"version": "1.4.0",
77
"authors": [
88
{
99
"name": "vin",

examples/admin-search-service.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
3+
require __DIR__ . '/../vendor/autoload.php';
4+
5+
use Vin\ShopwareSdk\Data\Context;
6+
use Vin\ShopwareSdk\Service\AdminSearchService;
7+
use Vin\ShopwareSdk\Data\Criteria;
8+
use Vin\ShopwareSdk\Service\Struct\KeyValuePairs;
9+
use Vin\ShopwareSdk\Service\Struct\KeyValuePair;
10+
11+
class AdminSearchExample {
12+
public function execute(): void
13+
{
14+
require __DIR__ . '/token.php';
15+
16+
$context = new Context($config['shop_url'], $accessToken);
17+
$service = new AdminSearchService($context);
18+
19+
$productCriteria = new Criteria();
20+
$productCriteria->addAssociation('categories');
21+
$productCriteria->setTerm('feeb9f03a8ca49749f8cce86c9a3d4d7');
22+
23+
$customerCriteria = new Criteria();
24+
$customerCriteria->setTerm('501e41803e7b4ca8b54a7ed72b498568pharvey@example.com');
25+
26+
$criteriaCollection = new KeyValuePairs();
27+
$criteriaCollection->add(KeyValuePair::create('product', $productCriteria));
28+
$criteriaCollection->add(KeyValuePair::create('customer', $customerCriteria));
29+
30+
$result = $service->search($criteriaCollection);
31+
32+
dd($result);
33+
}
34+
}
35+
36+
$example = new AdminSearchExample();
37+
$example->execute();

examples/notification-service.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
require __DIR__ . '/../vendor/autoload.php';
4+
5+
use Vin\ShopwareSdk\Data\Context;
6+
use Vin\ShopwareSdk\Service\NotificationService;
7+
use Vin\ShopwareSdk\Service\Struct\Notification;
8+
9+
class NotificationServiceExample {
10+
public function execute(): void
11+
{
12+
require __DIR__ . '/token.php';
13+
14+
$context = new Context($config['shop_url'], $accessToken);
15+
$service = new NotificationService($context);
16+
17+
$notification = Notification::createNotificationSuccess('Hello from External App!');
18+
19+
$service->sendNotification($notification);
20+
21+
$notifications = $service->fetchNotification();
22+
dump($notifications);
23+
}
24+
}
25+
26+
$example = new NotificationServiceExample();
27+
$example->execute();

examples/system-config-service.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
require __DIR__ . '/../vendor/autoload.php';
4+
5+
use Vin\ShopwareSdk\Data\Context;
6+
use Vin\ShopwareSdk\Service\SystemConfigService;
7+
use Vin\ShopwareSdk\Service\Struct\KeyValuePair;
8+
9+
class SystemConfigServiceExample {
10+
public function execute(): void
11+
{
12+
require __DIR__ . '/token.php';
13+
14+
$context = new Context($config['shop_url'], $accessToken);
15+
$service = new SystemConfigService($context);
16+
17+
$config = KeyValuePair::create('my.config.key1', ['test' => 'my.config.value1']);
18+
19+
$service->save($config);
20+
21+
$config = $service->getConfiguration('core.basicInformation');
22+
dump($config);
23+
}
24+
}
25+
26+
$example = new SystemConfigServiceExample();
27+
$example->execute();

examples/user-config-service.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
require __DIR__ . '/../vendor/autoload.php';
4+
5+
use Vin\ShopwareSdk\Data\Context;
6+
use Vin\ShopwareSdk\Service\UserConfigService;
7+
use Vin\ShopwareSdk\Service\Struct\KeyValuePair;
8+
use Vin\ShopwareSdk\Service\Struct\KeyValuePairs;
9+
10+
class UserConfigServiceExample {
11+
public function execute(): void
12+
{
13+
require __DIR__ . '/token.php';
14+
15+
$context = new Context($config['shop_url'], $accessToken);
16+
$service = new UserConfigService($context);
17+
18+
$config1 = KeyValuePair::create('my.config.key1', ['test' => 'my.config.value1']);
19+
$config2 = KeyValuePair::create('my.config.key2', ['another' => 'my.config.value2']);
20+
21+
$pairs = new KeyValuePairs([$config1, $config2]);
22+
23+
$service->saveConfigMe($pairs);
24+
25+
$configs = $service->getConfigMe($pairs->getKeys());
26+
dump($configs);
27+
}
28+
}
29+
30+
$example = new UserConfigServiceExample();
31+
$example->execute();

script/src/CodeGenerator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ private static function escapeJson(array $input) {
240240

241241
private static function getTypedProperty(string $entityNamespace, string $entityName, ClassGenerator $class, Property $property): ?string
242242
{
243+
// TODO: hotfix for ConfigJsonFieldSerializer bug in core
244+
if ($entityName === 'SystemConfig' && $property->name === 'configurationValue') {
245+
return null;
246+
}
247+
243248
$prefix = '?';
244249

245250
// $flags = $property->flags;

src/Data/Aggregation/HistogramAggregation.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@
99
class HistogramAggregation extends Aggregation
1010
{
1111
public const PER_MINUTE = 'minute';
12+
1213
public const PER_HOUR = 'hour';
14+
1315
public const PER_DAY = 'day';
16+
1417
public const PER_WEEK = 'week';
18+
1519
public const PER_MONTH = 'month';
20+
1621
public const PER_QUARTER = 'quarter';
22+
1723
public const PER_YEAR = 'year';
1824

1925
public string $name;

src/Data/Entity/App/AppDefinition.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function getSchema() : Schema
6363
new Property('customFieldSets', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), ]), ['entity' => 'custom_field_set', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
6464
new Property('actionButtons', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), ]), ['entity' => 'app_action_button', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
6565
new Property('templates', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), ]), ['entity' => 'app_template', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
66+
new Property('scripts', 'association', new FlagCollection([new Flag('cascade_delete', 1), ]), ['entity' => 'script', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
6667
new Property('webhooks', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), ]), ['entity' => 'webhook', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
6768
new Property('paymentMethods', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('set_null_on_delete', 1), ]), ['entity' => 'app_payment_method', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
6869
new Property('cmsBlocks', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), ]), ['entity' => 'app_cms_block', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),

src/Data/Entity/App/AppEntity.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Vin\ShopwareSdk\Data\Entity\CustomFieldSet\CustomFieldSetCollection;
88
use Vin\ShopwareSdk\Data\Entity\AppActionButton\AppActionButtonCollection;
99
use Vin\ShopwareSdk\Data\Entity\AppTemplate\AppTemplateCollection;
10+
use Vin\ShopwareSdk\Data\Entity\Script\ScriptCollection;
1011
use Vin\ShopwareSdk\Data\Entity\Webhook\WebhookCollection;
1112
use Vin\ShopwareSdk\Data\Entity\AppPaymentMethod\AppPaymentMethodCollection;
1213
use Vin\ShopwareSdk\Data\Entity\AppCmsBlock\AppCmsBlockCollection;
@@ -71,6 +72,8 @@ class AppEntity extends Entity
7172

7273
public ?AppTemplateCollection $templates = null;
7374

75+
public ?ScriptCollection $scripts = null;
76+
7477
public ?WebhookCollection $webhooks = null;
7578

7679
public ?AppPaymentMethodCollection $paymentMethods = null;

src/Data/Entity/AppPaymentMethod/AppPaymentMethodDefinition.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function getSchema() : Schema
4040
new Property('identifier', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
4141
new Property('payUrl', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4242
new Property('finalizeUrl', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
43+
new Property('validateUrl', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
44+
new Property('captureUrl', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4345
new Property('appId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4446
new Property('app', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), ['entity' => 'app', 'referenceField' => 'id', 'localField' => 'appId', 'relation' => 'many_to_one', ]),
4547
new Property('originalMediaId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),

src/Data/Entity/AppPaymentMethod/AppPaymentMethodEntity.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ class AppPaymentMethodEntity extends Entity
2121

2222
public ?string $finalizeUrl = null;
2323

24+
public ?string $validateUrl = null;
25+
26+
public ?string $captureUrl = null;
27+
2428
public ?string $appId = null;
2529

2630
public ?AppEntity $app = null;

src/Data/Entity/Country/CountryDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public function getSchema() : Schema
3939
new Property('name', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('required', 1), new Flag('search_ranking', 500), new Flag('translatable', 1), ]), []),
4040
new Property('iso', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('search_ranking', 250), ]), []),
4141
new Property('position', 'int', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
42-
new Property('taxFree', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('deprecated', unserialize('a:3:{s:16:"deprecated_since";s:6:"v6.4.0";s:18:"will_be_removed_in";s:6:"v6.5.0";s:11:"replaced_by";N;}')), ]), []),
4342
new Property('active', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
4443
new Property('shippingAvailable', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
4544
new Property('iso3', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('search_ranking', 250), ]), []),
@@ -48,6 +47,7 @@ public function getSchema() : Schema
4847
new Property('companyTaxFree', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('deprecated', unserialize('a:3:{s:16:"deprecated_since";s:6:"v6.4.0";s:18:"will_be_removed_in";s:6:"v6.5.0";s:11:"replaced_by";N;}')), ]), []),
4948
new Property('checkVatIdPattern', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
5049
new Property('vatIdRequired', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
50+
new Property('taxFree', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('deprecated', unserialize('a:3:{s:16:"deprecated_since";s:6:"v6.4.0";s:18:"will_be_removed_in";s:6:"v6.5.0";s:11:"replaced_by";N;}')), ]), []),
5151
new Property('vatIdPattern', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
5252
new Property('customFields', 'json_object', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('translatable', 1), ]), []),
5353
new Property('customerTax', 'json_object', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), ['properties' => json_decode('{"enabled":{"type":"boolean","flags":{"read_protected":[["Shopware\\Core\\Framework\\Api\\Context\\AdminApiSource"]],"required":true}},"currencyId":{"type":"string","flags":{"read_protected":[["Shopware\\Core\\Framework\\Api\\Context\\AdminApiSource"]],"required":true}},"amount":{"type":"float","flags":{"read_protected":[["Shopware\\Core\\Framework\\Api\\Context\\AdminApiSource"]],"required":true}}}', true), ]),

src/Data/Entity/Country/CountryEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class CountryEntity extends Entity
2323

2424
public ?int $position = null;
2525

26-
public ?bool $taxFree = null;
27-
2826
public ?bool $active = null;
2927

3028
public ?bool $shippingAvailable = null;
@@ -41,6 +39,8 @@ class CountryEntity extends Entity
4139

4240
public ?bool $vatIdRequired = null;
4341

42+
public ?bool $taxFree = null;
43+
4444
public ?string $vatIdPattern = null;
4545

4646
public ?array $customerTax = null;

src/Data/Entity/Customer/CustomerDefinition.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function getSchema() : Schema
6363
new Property('guest', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
6464
new Property('firstLogin', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
6565
new Property('lastLogin', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
66+
new Property('newsletterSalesChannelIds', 'json_object', new FlagCollection([new Flag('write_protected', [['system']]), ]), []),
6667
new Property('newsletter', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
6768
new Property('birthday', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
6869
new Property('lastOrderDate', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('write_protected', [['system']]), ]), []),

src/Data/Entity/Customer/CustomerEntity.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ class CustomerEntity extends Entity
7777

7878
public ?\DateTimeInterface$lastLogin = null;
7979

80+
public ?array $newsletterSalesChannelIds = null;
81+
8082
public ?bool $newsletter = null;
8183

8284
public ?\DateTimeInterface$birthday = null;

src/Data/Entity/ImportExportLog/ImportExportLogDefinition.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function getSchema() : Schema
4646
new Property('username', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4747
new Property('profileName', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4848
new Property('config', 'json_object', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
49+
new Property('result', 'json_object', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4950
new Property('user', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), ['entity' => 'user', 'referenceField' => 'id', 'localField' => 'userId', 'relation' => 'many_to_one', ]),
5051
new Property('profile', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), ['entity' => 'import_export_profile', 'referenceField' => 'id', 'localField' => 'profileId', 'relation' => 'many_to_one', ]),
5152
new Property('file', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), ['entity' => 'import_export_file', 'referenceField' => 'id', 'localField' => 'fileId', 'relation' => 'one_to_one', ]),

src/Data/Entity/ImportExportLog/ImportExportLogEntity.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class ImportExportLogEntity extends Entity
3333

3434
public ?array $config = null;
3535

36+
public ?array $result = null;
37+
3638
public ?UserEntity $user = null;
3739

3840
public ?ImportExportProfileEntity $profile = null;

0 commit comments

Comments
 (0)