Pārlūkot izejas kodu

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

feature/section_export
Fabien Normand pirms 3 nedēļām
vecāks
revīzija
28672c6c06
1 mainītis faili ar 18 papildinājumiem un 0 dzēšanām
  1. +18
    -0
      Doctrine/Extension/ProductPropertyTrait.php

+ 18
- 0
Doctrine/Extension/ProductPropertyTrait.php Parādīt failu

@@ -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;
}

}

Notiek ielāde…
Atcelt
Saglabāt