Exemplo n.º 1
0
 public function uomsForProduct(ProductModel $product)
 {
     if ($product->getProductTypeId() == 1) {
         return $this->buildersToUomsArray($product->getBuilders());
     }
     return $this->mergeEnabledUoms($product->getUoms());
 }
Exemplo n.º 2
0
 public function setProduct(Product $product)
 {
     $this->setProductId($product->getProductId());
     $this->product = $product;
     return $this;
 }