$c = new Criteria(); $c->addSelectColumn(HrTblMarriagesPeer::ID); $c->addSelectColumn(HrTblMarriagesPeer::HR_TBL_PARTICULARS_ID); $c->addSelectColumn(HrTblMarriagesPeer::MAR_NAME_OF_SPOUSE); $c->add(HrTblMarriagesPeer::HR_TBL_PARTICULARS_ID,2);*/
$this->setWidgets(array( 'id' => new sfWidgetFormInputHidden(), 'hr_tbl_marriages_id' => new sfWidgetFormPropelChoice(array('model' => 'HrTblMarriages', 'add_empty' => true,'criteria'=>$c)), how can i use in propel select choice it shows undefined index.. On Tue, Aug 18, 2009 at 3:56 AM, Andrei Dziahel <trickster...@gmail.com>wrote: > Hi. > > Here is an excerpt from my blablaForm::setup(): > >> $this->setWidget('country', >> new sfWidgetFormDoctrineSelect(array('model' => 'Country', >> 'query' => Doctrine::getTable('Country')-> >> createQuery('c')->leftJoin('c.Translation ct')->orderBy('c.order DESC, >> ct.name ASC')))); >> > > > 2009/8/18 afilina <afil...@gmail.com> > >> >> Could you please demonstrate how to use this method? I didn't find >> anything useful in the documentation to help me. Say I want to get a >> list of products with their names from within my controller. >> >> Thanks, >> Anna >> >> > > > -- > With the best regards, Andy. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---