mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
[MsgPhpEavBundle] enable doctrine mapping
This commit is contained in:
@@ -2,14 +2,16 @@
|
|||||||
|
|
||||||
namespace App\Entity\Eav;
|
namespace App\Entity\Eav;
|
||||||
|
|
||||||
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use MsgPhp\Eav\AttributeIdInterface;
|
use MsgPhp\Eav\AttributeIdInterface;
|
||||||
use MsgPhp\Eav\Entity\Attribute as BaseAttribute;
|
use MsgPhp\Eav\Entity\Attribute as BaseAttribute;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @final
|
* @ORM\Entity()
|
||||||
*/
|
*/
|
||||||
class Attribute extends BaseAttribute
|
class Attribute extends BaseAttribute
|
||||||
{
|
{
|
||||||
|
/** @ORM\Id @ORM\Column(type="msgphp_attribute_id") */
|
||||||
private $id;
|
private $id;
|
||||||
|
|
||||||
public function __construct(AttributeIdInterface $id)
|
public function __construct(AttributeIdInterface $id)
|
||||||
|
|||||||
Reference in New Issue
Block a user