> Ok - I know xD That is so dziobacz! LOL
> 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. It's not table name, it is model class name. And I think it's because: 1. Given a table name, it is hard to find the model class name 2. There can be multiple table names inside a single query (e.g.: with join) On Mon, Mar 30, 2009 at 4:52 AM, dziobacz <[email protected]> wrote: > > 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(); > > > -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
