sonata-project/SonataAdminBundle — pull request #755 by kufi (2012-05-15 13:12:21+00:00)
Title: Fixed a bug with Multilanguage

Fixed a bug with the use of multilanguageforms and sonata_type_collection.

The language forms are used like in this git: https://gist.github.com/2437078
The problem occurred in the addTranslatedFieldSubscriber. When the user tried to add a subdocument the FormEvent "BIND_NORM_DATA" had a problem in this class because it couldn't find values in the function "bindNormData" in the foreach-loop.

The problem was fixed after the call to $form->setData in the function appendFormFIeldElement. With this the subform would get loaded without a problem.

If the problem isn't clear I could upload a demonstration project to recreate the behavior.