-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from vienthuong/1.3.1
Release 1.3.1 - Bug fixed
- Loading branch information
Showing
53 changed files
with
415 additions
and
733 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php declare(strict_types=1); | ||
namespace Vin\ShopwareSdk\Data\Entity\AppCmsBlock; | ||
|
||
use Vin\ShopwareSdk\Data\Entity\EntityCollection; | ||
|
||
/** | ||
* Shopware Collection Mapping Class | ||
* | ||
* This class is generated dynamically following SW entities schema | ||
* | ||
* @method void add(AppCmsBlockEntity $entity) | ||
* @method void set(AppCmsBlockEntity $entity) | ||
* @method AppCmsBlockEntity[] getIterator() | ||
* @method AppCmsBlockEntity[] getElements() | ||
* @method AppCmsBlockEntity|null get(string $key) | ||
* @method AppCmsBlockEntity|null first() | ||
* @method AppCmsBlockEntity|null last() | ||
*/ | ||
class AppCmsBlockCollection extends EntityCollection | ||
{ | ||
public function getExpectedClass() : string | ||
{ | ||
return AppCmsBlockEntity::class; | ||
} | ||
} |
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,52 @@ | ||
<?php declare(strict_types=1); | ||
namespace Vin\ShopwareSdk\Data\Entity\AppCmsBlock; | ||
|
||
use Vin\ShopwareSdk\Data\Entity\EntityDefinition; | ||
use Vin\ShopwareSdk\Data\Schema\PropertyCollection; | ||
use Vin\ShopwareSdk\Data\Schema\FlagCollection; | ||
use Vin\ShopwareSdk\Data\Schema\Property; | ||
use Vin\ShopwareSdk\Data\Schema\Flag; | ||
use Vin\ShopwareSdk\Data\Schema\Schema; | ||
|
||
/** | ||
* Shopware Definition Mapping Class | ||
* | ||
* This class is generated dynamically following SW entities schema | ||
*/ | ||
class AppCmsBlockDefinition implements EntityDefinition | ||
{ | ||
public const ENTITY_NAME = 'app_cms_block'; | ||
|
||
public function getEntityName() : string | ||
{ | ||
return self::ENTITY_NAME; | ||
} | ||
|
||
public function getEntityClass() : string | ||
{ | ||
return AppCmsBlockEntity::class; | ||
} | ||
|
||
public function getEntityCollection() : string | ||
{ | ||
return AppCmsBlockCollection::class; | ||
} | ||
|
||
public function getSchema() : Schema | ||
{ | ||
return new Schema('app_cms_block', new PropertyCollection([ | ||
new Property('id', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('primary_key', 1), new Flag('required', 1), ]), []), | ||
new Property('name', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []), | ||
new Property('block', 'json_object', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []), | ||
new Property('template', 'text', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), new Flag('allow_html', 1), ]), []), | ||
new Property('styles', 'text', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []), | ||
new Property('label', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), new Flag('translatable', 1), ]), []), | ||
new Property('translations', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), new Flag('required', 1), ]), ['entity' => 'app_cms_block_translation', 'referenceField' => 'appCmsBlockId', 'localField' => 'id', 'relation' => 'one_to_many', ]), | ||
new Property('appId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []), | ||
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', ]), | ||
new Property('createdAt', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('required', 1), ]), []), | ||
new Property('updatedAt', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []), | ||
new Property('translated', 'json_object', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('computed', 1), new Flag('runtime', 1), ]), []), | ||
])); | ||
} | ||
} |
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,30 @@ | ||
<?php declare(strict_types=1); | ||
namespace Vin\ShopwareSdk\Data\Entity\AppCmsBlock; | ||
|
||
use Vin\ShopwareSdk\Data\Entity\AppCmsBlockTranslation\AppCmsBlockTranslationCollection; | ||
use Vin\ShopwareSdk\Data\Entity\App\AppEntity; | ||
use Vin\ShopwareSdk\Data\Entity\Entity; | ||
|
||
/** | ||
* Shopware Entity Mapping Class | ||
* | ||
* This class is generated dynamically following SW entities schema | ||
*/ | ||
class AppCmsBlockEntity extends Entity | ||
{ | ||
public ?string $name = null; | ||
|
||
public ?array $block = null; | ||
|
||
public ?string $template = null; | ||
|
||
public ?string $styles = null; | ||
|
||
public ?string $label = null; | ||
|
||
public ?AppCmsBlockTranslationCollection $translations = null; | ||
|
||
public ?string $appId = null; | ||
|
||
public ?AppEntity $app = null; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Data/Entity/AppCmsBlockTranslation/AppCmsBlockTranslationCollection.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,25 @@ | ||
<?php declare(strict_types=1); | ||
namespace Vin\ShopwareSdk\Data\Entity\AppCmsBlockTranslation; | ||
|
||
use Vin\ShopwareSdk\Data\Entity\EntityCollection; | ||
|
||
/** | ||
* Shopware Collection Mapping Class | ||
* | ||
* This class is generated dynamically following SW entities schema | ||
* | ||
* @method void add(AppCmsBlockTranslationEntity $entity) | ||
* @method void set(AppCmsBlockTranslationEntity $entity) | ||
* @method AppCmsBlockTranslationEntity[] getIterator() | ||
* @method AppCmsBlockTranslationEntity[] getElements() | ||
* @method AppCmsBlockTranslationEntity|null get(string $key) | ||
* @method AppCmsBlockTranslationEntity|null first() | ||
* @method AppCmsBlockTranslationEntity|null last() | ||
*/ | ||
class AppCmsBlockTranslationCollection extends EntityCollection | ||
{ | ||
public function getExpectedClass() : string | ||
{ | ||
return AppCmsBlockTranslationEntity::class; | ||
} | ||
} |
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
Oops, something went wrong.