symfony/symfony — pull request #3770 by Burgov (2012-04-03 20:29:30+00:00)
Title: Make sure bind() fills appData will its childrens appData

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes

Not sure if this was intentional, but I don't think it was:

when the data of a form is an array, then after binding the form, the forms getData method returns an array containing the client data of each child, rather than the app Data.

The test testDataTransformersOnChildrenDontRequireADataMapper would fail with the message:

1) Symfony\Component\Form\Tests\FormTest::testDataTransformersOnChildrenDontRequireADataMapper
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'a' => '11'
+ 'a' => '1'
)