Skip to content

[doc] adding ->createView() in normal symfony controller #1246

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

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

bdujon
Copy link
Contributor

@bdujon bdujon commented Nov 2, 2023

Sorry if i did something wrong since it s my first PR there.

If you don't add ->createView() in the render you ll get an error Cannot assign Symfony\Component\Form\Form to property xxxComponent::$formView of type ?Symfony\Component\Form\FormView

@weaverryan
Copy link
Member

Thanks @bdujon!

@weaverryan weaverryan merged commit e813ed3 into symfony:2.x Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants