$myEntity = $entityManager->merge($entity); //does the job :)
Marco Pivetta
@Ocramius <http://twitter.com/Ocramius>
http://marco-pivetta.com



On 18 May 2011 15:25, umpirsky <umpir...@gmail.com> wrote:

> I have a wizard of few steps. Each step manage separate doctrine
> entity, save it in session and proceed to next step. On one step I
> have address data, and using EntityChoiceList to display countries
> from database in choice (select) field.
>
> Problem is, when I go back in my wizard, I load entity from session,
> my address entitty have countries in it, and when I set form data it
> says "Entities passed to the choice field must be managed ".
>
> That is true, they are not managed, they are detached and saved in
> session.
>
> Any idea how can I manage them to avoid this error?
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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