title: Cannot get all websites in magento setup script
body: <p>I need to get all websites in my module setup script, by I always get empty array. I even tried to reduce my setup script to</p>
  
  <pre><code>&lt;?php
  var_dump(Mage::app()-&gt;getWebsites()); die;
  </code></pre>
  
  <p>and a result is empty array again. Magento 1.7.0.2
  If I call Mage::app()->getWebsites() outside of setup scrpt all works fine. What can I do?</p>