سؤال

I'm reviewing someone's code that loads, does something to it, and saves it.

$review = Mage::getModel('review/review')->load($id);
...
$review->setWebsiteId(0);
...
$review->save();

When a review object is loaded, there is no website ID, and the tables don't, either. I'm wondering if this is required or not. The reviews seem to get saves just fine without it. Any ideas?

هل كانت مفيدة؟

المحلول

This is a silly answer, but website_id is not a field for the review object (Mage_Review_Model_Review) and, therefore, not required.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top