[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-05 Thread Tom Ptacnik
I think symfony can't know what you want to display If you don't tell it... ;) Show me your schema.yml file (at least part with Empressas specification) On 4 ún, 16:09, wueb webmaster@gmail.com wrote: On 4 Fev, 14:52, Tom Ptacnik to...@tomor.cz wrote: 1 st problem try to do:  

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-04 Thread Tom Ptacnik
1 st problem try to do: protected function doUpdateObject($values) { print_r($values['id_empresa']); parent::doUpdateObject($values); } 2 nd I don't understand what are you trying to do. And what does mean they are both foreign keys from same fields? Probably you want to do

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-04 Thread wueb
On 4 Fev, 14:52, Tom Ptacnik to...@tomor.cz wrote: 1 st problem try to do:  protected function doUpdateObject($values)   {      print_r($values['id_empresa']);      parent::doUpdateObject($values);   } Thanks i will try. 2 nd I don't understand what are you trying to do. And what

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-04 Thread wueb
On 4 Fev, 14:52, Tom Ptacnik to...@tomor.cz wrote: 1 st problem try to do:  protected function doUpdateObject($values)   {      print_r($values['id_empresa']);      parent::doUpdateObject($values);   } Thanks i will try. 2 nd I don't understand what are you trying to do. And what

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-02 Thread wueb
Anyone please? :( -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options,

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-02 Thread wueb
!! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-02 Thread Tom Ptacnik
What do you have in the $empresas variable? how your action code? On 1 ún, 18:53, wueb webmaster@gmail.com wrote: Hi. I'm having 2 problems and i though someone here could help me. 1st PROBLEM: I have a widget called id_empresa which is a sfWidgetFormChoice with multiple choices, like

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-02 Thread wueb
Hello Tom, $empresas had a array with values and descriptions to put on the select. But right now my major problem is the 2nd. Any idea? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to