0
I used the command:
php bin/console generate:doctrine:crud
it generated all pages and controllers in my project, but when I enter the route to create a user of the following error:
Expected argument of type "string", "AppBundle\Form\UserType" given
Does anyone know how to fix it, or has it ever happened?
If I need to put here the code, but it is the pattern generated by symfony.3
Paste the generated controller code, please.
– Rodrigo Rigotti
I have already solved it. In the Symfony version < 2 8 a new Typeabstract is passed in the createForm parameter now passes Typeabstract:class.
– Marcius Leandro