title: Zend PDO - no primary key in view
body: <p>I'm getting this exception:</p>
  
  <pre><code>Message: A table must have a primary key, but none was found
  </code></pre>
  
  <p>When trying to execute the following code on a view:</p>
  
  <p>$tbl = new Zend_Db_Table(array('name'=>'attribute_map'));</p>
  
  <pre><code>$row = $tbl-&gt;fetchRow(
      $tbl-&gt;select()
          -&gt;where('attribute_code = 7')
  );
  </code></pre>
  
  <p>MySQL doesn't have indexed views. As such, they can't have primary keys. How do I get around this? Do I really need to execute a standalone query? Why can't Zend identify a view?</p>