[MsgPhpEavBundle] enable doctrine mapping

This commit is contained in:
Roland Franssen
2018-03-27 21:12:13 +02:00
committed by GitHub
parent f5101fb686
commit ebb164c0c9
@@ -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)