populateProduct($product); $productPrice->price = $price; if($user) { $productPrice->populateUser($user); } if($userGroup) { $productPrice->populateUserGroup($userGroup); } if($pointSale) { $productPrice->populatePointSale($pointSale); } if($quantityFrom) { $productPrice->from_quantity = $quantityFrom; } return $productPrice; } public function createProductPrice(): ProductPrice { $productPrice = $this->instanciateProductPrice(); $this->saveCreate($productPrice); return $productPrice; } }