Skip to content

Commit

Permalink
fix brand entity serialize group
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuildy committed Oct 18, 2024
1 parent d01bd3e commit 0cde6b5
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/Model/Brand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace Loevgaard\SyliusBrandPlugin\Model;

use JMS\Serializer\Annotation as Serializer;

class Brand implements BrandInterface
{
use ProductsAwareTrait {
Expand All @@ -13,13 +15,22 @@ class Brand implements BrandInterface
ImagesAwareTrait::__construct as private __imagesAwareTraitConstruct;
}

/** @var int */
/**
* @var int
* @Serializer\Groups({"Autocomplete"})
*/
protected $id;

/** @var string|null */
/**
* @var string|null
* @Serializer\Groups({"Autocomplete"})
*/
protected $code;

/** @var string|null */
/**
* @var string|null
* @Serializer\Groups({"Autocomplete"})
*/
protected $name;

public function __construct()
Expand Down

0 comments on commit 0cde6b5

Please sign in to comment.