瀏覽代碼

Ajout de la propriété 'weight' sur product et productFamily

feature/section_export
Fabien Normand 1 月之前
父節點
當前提交
28672c6c06
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. +18
    -0
      Doctrine/Extension/ProductPropertyTrait.php

+ 18
- 0
Doctrine/Extension/ProductPropertyTrait.php 查看文件

@@ -39,6 +39,12 @@ trait ProductPropertyTrait
*/
protected $propertyExpirationDate;

/**
* @ORM\Column(type="float", nullable=true)
*/
protected $weight;


public function getBuyingPriceByRefUnit(): ?float
{
return $this->buyingPriceByRefUnit;
@@ -111,4 +117,16 @@ trait ProductPropertyTrait
return $this;
}

public function getWeight(): ?float
{
return $this->weight;
}

public function setWeight(?float $weight): self
{
$this->weight = $weight;

return $this;
}

}

Loading…
取消
儲存