On Sun, May 11, 2008 at 10:14 AM, orkestra <[EMAIL PROTECTED]> wrote:
> $c = new Criteria(); > $pager = new sfPropelPager('Product', 5); > > // specifying the select columns > $c->addSelectColumn(ProductI18nPeer::NAME); > $c->setDistinct(); > > $pager->setCriteria($c); > $pager->setPage($this->getRequestParameter('page', 1)); > $pager->init(); > $this->pager = $pager; > > But this gives me the error: "Error populating Product object > [wrapped: Invalid resultset column: 2]" Try: $c = new Criteria(); $c->setDistinct(); $pager = new sfPropelPager('Product', 5); $pager->setPeerMethod('doSelectWithI18n'); $pager->setCriteria($c); HTH ++ -- Nicolas Perriault http://prendreuncafe.com/blog GSM: 06.60.92.08.67 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---