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 this: $this->widgetSchema['id_empresa'] = new sfWidgetFormChoice( array( 'choices' => $empresas, 'expanded' => false, 'multiple' => true ), array( 'size' => $size ) ); And when i submit the form where the widget is, i can't get any value from the select box even with all the options selected. It returns me always null. //form public function updateObject($values = null) { print_r($this->id_empresa); //output = null !! } ------ 2nd PROBLEM In my template i have this: <tr> <td>Created by</td> <td><?php echo $info_empresa->getCreatedBy() ?></td> <td>Updated by</td> <td><?php echo $info_empresa->getUpdatedBy() ?></td> </tr> My point is get something like : <tr> <td>Created by</td> <td><?php echo $info_empresa->getUsers()->getUsername() ?></td> <td>Updated by</td> <td><?php echo $info_empresa->getUsers()->getUsername() ?></td> </tr> But they are both foreign keys from same fields, how does the symfony knows what Username get?? The CreatedBy and UpdatedBy are IDs and can be from different users. -- 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 group at http://groups.google.com/group/symfony-users?hl=en.