Skip to content

Commit

Permalink
Fix Compatibility with Sylius 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreGauthier committed Jun 18, 2024
1 parent 99d2dc6 commit ce56ca6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
use Gally\SyliusPlugin\Model\GallyChannelTrait;
use Sylius\Component\Core\Model\Channel as BaseChannel;

/**
* @ORM\Entity
* @ORM\Table(name="sylius_channel")
*/
#[ORM\Entity]
#[ORM\Table(name: 'sylius_channel')]
class Channel extends BaseChannel implements GallyChannelInterface
Expand Down
14 changes: 5 additions & 9 deletions src/Model/GallyChannelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@

trait GallyChannelTrait
{
/**
* @ORM\Column(name="gally_active", type="boolean")
*/
#[ORM\Column(name: "gally_active", type: "boolean")]
protected $gallyActive = false;
/**
* @ORM\Column(name="gally_product_index_batch_size", type="integer")
*/

#[ORM\Column(name: "gally_product_index_batch_size", type: "integer")]
protected $gallyProductIndexBatchSize = 50;
/**
* @ORM\Column(name="gally_category_index_batch_size", type="integer")
*/

#[ORM\Column(name: "gally_category_index_batch_size", type: "integer")]
protected $gallyCategoryIndexBatchSize = 50;

public function getGallyActive(): bool
Expand Down

0 comments on commit ce56ca6

Please sign in to comment.