Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Form] Calling setDefault for data class does not associates form with binded class #1048

Closed
Koc opened this issue Oct 10, 2017 · 1 comment
Labels

Comments

@Koc
Copy link
Contributor

Koc commented Oct 10, 2017

public function buildForm(FormBuilderInterface $builder, array $options)
{
    $builder->add('firstName');
}

// form type not associated with User, no ctrl+click on "firstName"
$resolver->setDefault('data_class', User::class);

// works ok
$resolver->setDefaults(['data_class' => User::class]);
@Haehnchen
Copy link
Owner

done

Haehnchen added a commit that referenced this issue Dec 7, 2017
…set-default

[Form] Calling setDefault for data class does not associates form with binded class #1048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants