How do i use findAll method with a class in Doctrine?

Posted by terrani on Stack Overflow See other posts from Stack Overflow or by terrani
Published on 2010-03-21T08:20:47Z Indexed on 2010/03/21 8:31 UTC
Read the original article Hit count: 424

Filed under:
|

Hi,

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.

so..I created an object of class User.

$oUser = new User();

when I try to use findAll method, it does not work. I found the following code on the doctrine documentation.

Doctrine_Core::getTable('User')->findAll();

I don't understand why i need to call getTable to use findAll method when I have User class.

Am I missing something?

© Stack Overflow or respective owner

Related posts about doctrine

Related posts about class