Query works, thanks. But now I get error when I am trying to use it on the object helper: Call to a member function getPrimaryKey() on a non-object in ObjectHelper.php on line 164
On Mar 8, 5:22 am, alvaro <[email protected]> wrote: > $c = new Criteria(); > $c->clearSelectColumns(); > $c->addSelectColumn(MyPeer::MY_COLUMN): > > $rs = MyPeer::doSelectRS($c); > On Mar 8, 2009, at 3:29 AM, torso wrote: > > > > > Hi > > > I how I do this query with propel, not raw sql query, but with > > cirteria. Select FLASH from FILES > > I need to get select options with flash file name. > > > I have tried this: > > > add to FilePeer with function name getSortedFlash: > > > $c = new Criteria(); > > $c->add($c->getColumnName(FilePeer::FLASH)); > > $rs =File::DoSelect($c); > > > this is for template: > > echo object_select_tag($file, 'getFileId', > > 'peer_method=getSortedFlash') > > > Thanks for your help --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
