What actions are performed in this code?

$model = Mage::getModel(‘your_module/model’);
$model->load($id);
$model->setData(‘name’, ‘value’);
$model->load($id);
$model->save();
  • Model data was loaded from the database and saved twice, because load() calls save() if any data was changed
  • Model data was loaded twice, but was not saved
  • Model data was loaded from the database twice and saved into the database with a new property value
  • Model data was loaded once, but was not saved