Hello,

    Where i have to write this code , [action class , model class or 
form class]
  

public function bind(array $taintedValues = null, array $taintedFiles = 
null)

{

$taintedValues['countries'] = implode(',',$taintedValues['countries']);

parent::bind($taintedValues, $taintedFiles);

 }

Thanks



Alexandru-Emil Lupu wrote:
> you might wanna override the "bind" method of your form by
>
> public function bind(array $taintedValues = null, array $taintedFiles 
> = null)
>
> {
>
> $taintedValues['countries'] = implode(',',$taintedValues['countries']);
>
> parent::bind($taintedValues, $taintedFiles);
>
>  }
>
> of something similar...
>
> On Thu, Oct 8, 2009 at 11:25 AM, Bhumika Gohil <[email protected] 
> <mailto:[email protected]>> wrote:
>
>
>
>     Hello
>
>        I have below Problem in my symfony , If possible then help me
>
>
>     I used following code to display multi-selected drop down box for
>     country ..
>
>     $this->widgetSchema['countries'] = new
>     sfWidgetFormDoctrineChoice(array
>     (
>     'model' => 'Countries',
>     'multiple' => true,
>     ));
>
>     and now I want to save these multi-selected values in database by
>     comma separated or in another table
>
>
>
>     but it is saving "Array" string into database ...
>
>
>
>     Thanks
>
>
>
>
>
>
>
>
>
>
>
> -- 
> As programmers create bigger & better idiot proof programs, so the 
> universe creates bigger & better idiots!
> I am on web:  http://www.alecslupu.ro/
> I am on twitter: http://twitter.com/alecslupu
> I am on linkedIn: http://www.linkedin.com/in/alecslupu
> Tel: (+4)0748.543.798
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to