Browse Source

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

feature/section_export
Fabien Normand 1 month ago
parent
commit
28672c6c06
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      Doctrine/Extension/ProductPropertyTrait.php

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

*/ */
protected $propertyExpirationDate; protected $propertyExpirationDate;


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


public function getBuyingPriceByRefUnit(): ?float public function getBuyingPriceByRefUnit(): ?float
{ {
return $this->buyingPriceByRefUnit; return $this->buyingPriceByRefUnit;
return $this; return $this;
} }


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

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

return $this;
}

} }

Loading…
Cancel
Save