Sfoglia il codice sorgente

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

feature/section_export
Fabien Normand 3 settimane fa
parent
commit
28672c6c06
1 ha cambiato i file con 18 aggiunte e 0 eliminazioni
  1. +18
    -0
      Doctrine/Extension/ProductPropertyTrait.php

+ 18
- 0
Doctrine/Extension/ProductPropertyTrait.php Vedi File

@@ -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…
Annulla
Salva