title: Magento saving a product option for an attribute with a dropdown type
body: <p>I have written code that automatically imports products basically something like:</p>
  
  <pre><code>$product-&gt;setName('my name');
  $product-&gt;save();
  </code></pre>
  
  <p>This is fine for free fill text boxes, but how would I go about setting say manufacturer, which is a drop down menu? Is there also a way that if the option doesnt exist, then it will automagically add it?</p>
  
  <p>Thanks</p>