title: Zend_Db_Table Base table or view not found
body: <p>I have taken over an application written with the use of the Zend MVC and Zend_Db_Table for DB access. I am trying to add a new table but get the error:</p>
  
  <pre><code>Base table or view not found: 1146 Table 'maa_agencies.contact' doesn't exist
  </code></pre>
  
  <p>However maa_agcencies.contact very much DOES exists and is in the same DB as the rest of the tables being accessed.</p>
  
  <p>Here are my steps and code:</p>
  
  <p>Step 1:</p>
  
  <p>Create the Model Class</p>
  
  <p>file: application/models/DbTable/Contact.php</p>
  
  <pre><code>class Model_DbTable_Contact extends Zend_Db_Table_Abstract
  {
      protected $_name = 'contact';
  }
  </code></pre>
  
  <p>Step 2:</p>
  
  <p>Instantiate the Class the same way it's done a dozen time in a controller (all other tables work) </p>
  
  <p>file: application/modules/agency/controllers/IndexController.php (also step 3)</p>
  
  <pre><code>$agency_contact = new Model_DbTable_Contact();
  </code></pre>
  
  <p>Step 3:</p>
  
  <p>Write my data to my new table ($store_contact is an assoc array with key = column name value = value)</p>
  
  <pre><code>$agency_contact-&gt;insert($store_contact);
  </code></pre>
  
  <p>Is there some caching function in Zend I am unaware of? </p>
  
  <p>Some special thing I need to do to tell it I added a new table?</p>
  
  <p>All documentation I have come across says this is all that is required, and as I state above the file I am trying to access my table through is already accessing 2 other tables in the same DB, in fact the line just above where I instantiate my Contact model is this statement that works fine:</p>
  
  <pre><code>$sm = new Model_DbTable_SentEmail();
  </code></pre>
  
  <p>The name space idea seems awesome! If this system wasn't some bastardization of the framework. Here is a currently working Model</p>
  
  <pre><code>/**
   * @category    Model_DbTable
   * @package     Model_DbTable_States    
  
  class Model_DbTable_States extends Zend_Db_Table_Abstract
  {
    protected $_name = 'state_list';
  }
  </code></pre>
  
  <p>Is there some vodoo in the commenting perhaps, I am unable to find anywhere in the code where a namespace is registered at all.</p>