title: Magento getAttributeText() not working in shell script
body: <p>I have the following code to loop over all products and echo the sku and manufacturer, but $manu is always blank, even though I do get the sku correctly.</p>
  
  <pre><code>private function organize() {
      $products = Mage::getModel('catalog/product')-&gt;getCollection();
      foreach ($products as $product) {
          $sku = $product-&gt;getSku();
          $manu = $product-&gt;getAttributeText('manufacturer');
          // The following also doesn't work
          //$manu = $product-&gt;getResource()-&gt;getAttribute('manufacturer')-&gt;getFrontend()-&gt;getValue($product);
          echo $sku." - ".$manu."\n";
      }
  }
  </code></pre>
  
  <p>This is running as a command line script extending from Mage_Shell_Abstract</p>
  
  <p>What could be wrong with my code?</p>
  
  <p>David</p>