Skip to content

Commit

Permalink
Add missing entities to 2.0 (#1063)
Browse files Browse the repository at this point in the history
This PR is waiting for the next version of Sylius (v2.0.0-RC.1)
  • Loading branch information
mpysiak authored Nov 11, 2024
2 parents 55f4a85 + 77e1467 commit d92f556
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"require": {
"php": "^8.2",
"sylius/sylius": "v2.0.0-beta.1",
"sylius/sylius": "v2.0.0-rc.1",
"symfony/dotenv": "^6.4 || ^7.1",
"symfony/flex": "^2.4",
"symfony/runtime": "^6.4 || ^7.1"
Expand Down
6 changes: 6 additions & 0 deletions config/packages/_sylius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,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 @@ -66,6 +69,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
14 changes: 14 additions & 0 deletions src/Entity/Channel/ShopBillingData.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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')]
class ShopBillingData extends BaseShopBillingData
{
}
14 changes: 14 additions & 0 deletions src/Entity/User/AvatarImage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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')]
class AvatarImage extends BaseAvatarImage
{
}

0 comments on commit d92f556

Please sign in to comment.