Hi.
I have a model with a field: languages. Languages are in a different
module, like this:
en -> english
pl -> polish
fr->french
etc.
So when I add a new object, I choose languages. I use:
'languages' => new sfWidgetFormPropelChoice(array('model' =>
'Languages ', 'multiple' => true, 'add_empty' => false)),
and validator:
'languages' => new sfValidatorPropelChoice(array('model' =>
'Languages ', 'multiple' => true)),
My question is how to handle saving it? When I choose few languages,
it is saved in DB like this: Array.
I would like to save it as for example: en, pl (or in a different way,
which is better, any suggestions?)
Is there an automatic handling for this, or I have to ovverride save
method and do it by myself? Which is not difficult but maybe there is
a better way.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---