CodeExplorer setSimilarProducts example
$product = Product::
createFromListProduct($listProduct);
if (isset($relatedProducts[$number])) { $product->
setRelatedProducts($relatedProducts[$number]);
} if (isset($relatedProductStreams[$number])) { $product->
setRelatedProductStreams($relatedProductStreams[$number]);
} if (isset($similarProducts[$number])) { $product->
setSimilarProducts($similarProducts[$number]);
} if (isset($votes[$number])) { $product->
setVotes($votes[$number]);
} if (isset($downloads[$number])) { $product->
setDownloads($downloads[$number]);
} if (isset($links[$number])) {