symfony/symfony — pull request #4552 by MDrollette (2012-06-11 18:37:37+00:00)
Title: [Form] form contains no children in PRE_SET_DATA and POST_SET_DATA events 

When the Form constructor was refactored here 29963400e8d01a42ecd1e88339cd28c33d9ddb8d it changed when setData events are fired. They fire before the children are added in the builder here:
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/FormBuilder.php#L206.

This fix calls setData after the children are added so the setData events have access to the form children.