<codetype="php">classUserTableextendsDoctrine_Table{/** * you can add your own finder methods here */publicfunctionfindByName($name){return$this->getConnection()->query("FROM User WHERE name LIKE '%$name%'");}}classUserextendsDoctrine_Record{}$conn=Doctrine_Manager::getInstance()->openConnection(newPDO("dsn","username","password"));// doctrine will now check if a class called UserTable exists // and if it inherits Doctrine_Table$table=$conn->getTable("User");printget_class($table);// UserTable$users=$table->findByName("Jack");</code>