i want to create a form to edit a member table. The propelform is not good enough so i am creating my own EditMemberForm. Because i don't want to edit all the field of the member table.
In this form i have a combobox. That must be filled in with values coming from the Level table (in member table there is a foreign key to the primary key of the level table).
In EditMemberForm i have
'level' => new sfWidgetFormSelect(array('choices' => LevelPeer::getLevels())),
And the getLevels() in LevelPeer is simple
$c = new Criteria();
The combobox is filled in correctly with all the records of the Level table. But the value of the option tag is just filled in with 0,1,2,... instead of the id's of the records from the Level table.
What should i do to make it work?
Another question: how can i set the default corresponding with the value of the foreign key in the member table.