Skip to content

Commit

Permalink
[PriceHistory] Add PriceHistory entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Feb 20, 2024
1 parent 2ea7139 commit d564393
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/packages/_sylius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ sylius_core:
channel_pricing:
classes:
model: App\Entity\Channel\ChannelPricing
channel_price_history_config:
classes:
model: App\Entity\Channel\ChannelPriceHistoryConfig
channel_pricing_log_entry:
classes:
model: App\Entity\Channel\ChannelPricingLogEntry

sylius_currency:
resources:
Expand Down
18 changes: 18 additions & 0 deletions src/Entity/Channel/ChannelPriceHistoryConfig.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\ChannelPriceHistoryConfig as BaseChannelPriceHistoryConfig;

/**
* @ORM\Entity
* @ORM\Table(name="sylius_channel_price_history_config")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_channel_price_history_config')]
class ChannelPriceHistoryConfig extends BaseChannelPriceHistoryConfig
{
}
18 changes: 18 additions & 0 deletions src/Entity/Channel/ChannelPricingLogEntry.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\ChannelPricingLogEntry as BaseChannelPricingLogEntry;

/**
* @ORM\Entity
* @ORM\Table(name="sylius_channel_pricing_log_entry")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_channel_pricing_log_entry')]
class ChannelPricingLogEntry extends BaseChannelPricingLogEntry
{
}

0 comments on commit d564393

Please sign in to comment.