I am trying to copy the related products of one product ($odlProduct) to another product ($newProduct). I am doing this because I am trying to create a simple product from a configurable product.
I have used this code:
$newProduct->setRelatedProductIds($oldProduct->getRelatedProductIds());
I can confirm that the related products have been added:
Zend_Debug::dump($newProduct->getRelatedProductIds(), "new product...");
I have made sure that the product has been saved using $newProduct->save();
However, nothing shows up in the product page or when I query the related products in PHP.
What am I missing?