Calling $builder->getData() from within a nested form always returns NULL
问题 I'm trying to get data stored in a nested form but when calling $builder->getData() I'm always getting NULL. Does anyone knows what how one should get the data inside a nested form? Here's the ParentFormType.php: class ParentFormType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('files', 'collection', array( 'type' => new FileType(), 'allow_add' => true, 'allow_delete' => true, 'prototype' => true, 'by_reference' => false ); }