I would like to have this in my child form class:

  public function configure()
  {
        $this->widgetSchema['teamnumber'] = new sfWidgetFormPropelSelect(array
('model' => 'NewTeam', 'add_empty' => true, 'key_method' =>
'getTeamnumber', 'choices' => 'Choose a team'));
  }

I need for this drop down select box to use "teamnumber" instead of
the id primary key of the new_team database table. However, I'm using
Symfony 1.1. The above gives me an exception:

[InvalidArgumentException]
sfWidgetFormPropelSelect does not support the following options:
'key_method'.

I see the key_method here:

http://www.tig12.net/downloads/apidocs/symfony/plugins/sfPropelPlugin/lib/widget/sfWidgetFormPropelSelect.class.html

However, I think that is for the 1.2 version of Symfony. When I look
here:

http://www.symfony-project.org/api/1_1/sfWidgetFormPropelSelect

That is clearly for the 1.1 version, and key_method is not mentioned.

Is it correct to say that in version 1.1 the sfWidgetFormPropelSelect
always assumes it should be using the primary key in the database
table that it gets its data from?



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to