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