title: How do i use findAll method with a class in Doctrine?
body: <p>I am a little bit confused with Doctrine class. I created a class and its base class in Doctrine. The class's name is User.</p>
  
  <p>so..I created an object of class User.</p>
  
  <pre><code>$oUser = new User();
  </code></pre>
  
  <p>when I try to use the <code>findAll</code> method, it does not work. I found the following code on the doctrine documentation:</p>
  
  <pre><code>Doctrine_Core::getTable('User')-&gt;findAll();
  </code></pre>
  
  <p>I don't understand why i need to call <code>getTable</code> to use the <code>findAll</code> method when I have User class.</p>
  
  <p>Am I missing something?</p>