Skip to content

Commit

Permalink
Add missing entities to 1.14 (#1062)
Browse files Browse the repository at this point in the history
This PR is waiting for the next version of Sylius (v1.14.0-RC.1)
  • Loading branch information
mpysiak authored Nov 11, 2024
2 parents fdee848 + 000d7e5 commit d840fc3
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"require": {
"php": "^8.1",
"sylius/sylius": "v1.14.0-beta.1",
"sylius/sylius": "v1.14.0-rc.1",
"symfony/dotenv": "^5.4 || ^6.4",
"symfony/flex": "^2.4",
"symfony/runtime": "^5.4 || ^6.4"
Expand Down
9 changes: 9 additions & 0 deletions config/packages/_sylius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ sylius_channel:
model: App\Entity\Channel\Channel
sylius_core:
resources:
avatar_image:
classes:
model: App\Entity\User\AvatarImage
product_image:
classes:
model: App\Entity\Product\ProductImage
Expand All @@ -67,6 +70,9 @@ sylius_core:
channel_pricing_log_entry:
classes:
model: App\Entity\Channel\ChannelPricingLogEntry
shop_billing_data:
classes:
model: App\Entity\Channel\ShopBillingData

sylius_currency:
resources:
Expand Down Expand Up @@ -215,6 +221,9 @@ sylius_shipping:
translation:
classes:
model: App\Entity\Shipping\ShippingMethodTranslation
shipping_method_rule:
classes:
model: App\Entity\Shipping\ShippingMethodRule
shipping_category:
classes:
model: App\Entity\Shipping\ShippingCategory
Expand Down
18 changes: 18 additions & 0 deletions src/Entity/Channel/ShopBillingData.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace App\Entity\Channel;

use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Core\Model\ShopBillingData as BaseShopBillingData;

/**
* @ORM\Entity
* @ORM\Table(name="sylius_shop_billing_data")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_shop_billing_data')]
class ShopBillingData extends BaseShopBillingData
{
}
18 changes: 18 additions & 0 deletions src/Entity/Shipping/ShippingMethodRule.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace App\Entity\Shipping;

use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Shipping\Model\ShippingMethodRule as BaseShippingMethodRule;

/**
* @ORM\Entity
* @ORM\Table(name="sylius_shipping_method_rule")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_shipping_method_rule')]
class ShippingMethodRule extends BaseShippingMethodRule
{
}
18 changes: 18 additions & 0 deletions src/Entity/User/AvatarImage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace App\Entity\User;

use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Core\Model\AvatarImage as BaseAvatarImage;

/**
* @ORM\Entity
* @ORM\Table(name="sylius_avatar_image")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_avatar_image')]
class AvatarImage extends BaseAvatarImage
{
}

0 comments on commit d840fc3

Please sign in to comment.