<?php$conn=Doctrine_Manager::getInstance()->openConnection(newPDO("dsn","username","password"));$query=newDoctrine_Query($conn);$query->from('User.Phonenumber')->limit(20);// hook the query into appropriate view$view=newDoctrine_View($query,'MyView');// now fetch the data from the view$coll=$view->execute();?>