In previous versions of Magento, I was able to use this code:
$product = Mage::getModel('catalog/product')->load(147);
$product->setDescription('test description');
$product->save();
However, in EE 1.13.1, I am getting a fatal error:
Fatal error: Uncaught exception 'Mage_Eav_Model_Entity_Attribute_Exception' with message 'Product with the 'louis-vuitton-handbag' url_key attribute already exists.' in /Applications/XAMPP/xamppfiles/htdocs/magentoee113/app/code/core/Mage/Core/Model/Config.php:1348 ....
If I set the store ID when loading the product, then it works:
$product = Mage::getModel('catalog/product')->setStoreId(0)->load(147);
$product->setDescription('test description');
$product->save();
What is the proper way to do this?
Thanks.