Ok - I know xD

$q = Doctrine::getTable('sfGuardUserProfile')->seek_users();

$this->pager = new sfDoctrinePager('sfGuardUserProfile', 5);
$this->pager->setQuery($q);
$this->pager->setPage($request->getParameter('page', 1));
$this->pager->init();


I only don't understand why I must in sfDoctrinePager() in 1. argument
write name of table - I have in query name of table so I think it is
stupid.



On 29 Mar, 15:05, dziobacz <[email protected]> wrote:
> In sfGuardUserProfile I have method: seek_users() - how can I call
> this method in setQuery() function of pager? I use Doctrine.
>
> $this->pager = new sfDoctrinePager('sfGuardUserProfile', 5);
> $this->pager->setQuery(..........................);
> $this->pager->setPage($request->getParameter('page', 1));
> $this->pager->init();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to